141 Commits

Author SHA1 Message Date
Nick Treleaven
477aa6fa75 Speed up loading multiple C-like files when restoring session or
loading command-line files at startup by ensuring documents are
only colourised once.
Also prevent re-colourising C-like documents after saving a file
unless the list of typenames has changed.
Add document_delay_colourise(), document_colourise_all().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-23 13:26:06 +00:00
Enrico Tröger
f548b5b5bb Added possibility to create and open non-existent files from command line (closes #1635094 and #1652917).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1290 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-15 23:56:15 +00:00
Enrico Tröger
3f360fcdd9 Improved the auto scrolling of documents (actually done by Nick).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1237 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-31 15:53:11 +00:00
Enrico Tröger
8da68b6756 Fixed some scrolling issues with session files and files remotely open via the socket. Added need_scrolling flag to document struct.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1233 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-27 18:45:47 +00:00
Enrico Tröger
7b61ad934d Updated copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1188 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:36:42 +00:00
Enrico Tröger
d14742366c Fixed broken overtype update in the statusbar.
Removed unused field do_overwrite in document struct.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1067 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-08 15:30:44 +00:00
Nick Treleaven
1edaaa3d6c Show read-only notebook tabs in green.
Add document_get_status() to get the tab colour for the document.
Use ui_update_tab_status() to update notebook tabs and open files
treeview items.
Avoid using GtkTreeIter struct as treeviews function arguments.
Remove unneeded arguments for treeviews_openfiles_add(),
notebook_new_tab().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1053 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-05 10:37:36 +00:00
Nick Treleaven
3537731023 When replacing in session, use notebook page order and show a count
of the files changed.
Show the filename when replacing text over a range.
Add DOC_FILENAME() null-safe macro to get the filename at doc_idx.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1031 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-25 12:32:22 +00:00
Nick Treleaven
b2f191d37a Fix sign comparison warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1008 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-17 12:19:31 +00:00
Enrico Tröger
99806172b2 Enabled drag and drop for the whole main window to be able to drop files even if no tabs are open.
Moved code for getting the file list to document_open_file_list().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1004 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-15 23:12:13 +00:00
Nick Treleaven
c3300b2da9 Add NULL-safe FILETYPE_ID macro to get filetype::id from pointer.
Allow insertion of GPL notice and file header when the filetype is
not set.
Add commenting for PHP & HTML GPL notice and file header templates.
Add make_comment_block() to templates.c.
Move document_prepare_template(), filetypes_get_template() to
templates.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@994 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-14 16:03:25 +00:00
Nick Treleaven
7b1ca9594f Scroll matching selection to 1/3 of the view when searching.
Add sci_scroll_to_line(); remove sci_goto_line_scroll().
Show 'not found' message on status bar also when enter is pressed in
the search bar.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@964 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-03 15:09:13 +00:00
Nick Treleaven
4d42dbbe52 Fix setting document unchanged state when using Undo/Redo for
encoding or BOM changes.
Add sci_is_modified().
Added useful doc() function used only when debugging.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@922 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-24 13:41:34 +00:00
Enrico Tröger
47a71bc3aa Added new encoding "None" to open files without any character conversions (fixes #1580456).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@920 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-23 20:32:37 +00:00
Nick Treleaven
03eae9ebc4 Add separate Replace button, rename old button Replace & Find.
Add expander to group Replace All options for Replace dialog.
Use Replace All In Session button instead of checkbox.
Add border, update packing for all dialogs in search.c.
Add ui_dialog_vbox_new() for consistent dialog borders.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@914 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-22 14:56:05 +00:00
Nick Treleaven
89b3f4c314 Remove unused argument. Rename document_find_next() document_search_bar_find().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@910 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-21 11:00:37 +00:00
Enrico Tröger
028fe98373 Finished new Undo system. Now some more actions can be undone and also redone.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@878 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-10 16:02:41 +00:00
Nick Treleaven
93ba5ba45f Removed the GEANY_MAX_OPEN_FILES limit, using a dynamic array.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@875 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-09 16:08:53 +00:00
Enrico Tröger
116728caae Added own implementation of an Undo stack (not yet working).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@793 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 16:09:08 +00:00
Enrico Tröger
5a05227d87 Don't quit when an error occurs while saving changed files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@792 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 18:33:48 +00:00
Enrico Tröger
f74ae89922 Escape special characters when shown in the status window after "Replace All" or replacing a selection.
Set the focus to the replace entry widget when pressing the tabulator key in the find entry widget in the replace dialog.
Set the focus to the find entry widget when pressing the tabulator key in the directory entry widget in the FIF dialog.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@783 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-02 23:28:34 +00:00
Nick Treleaven
973ea2144d Add document_get_current()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@781 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-02 20:49:11 +00:00
Nick Treleaven
0bd427bd05 Remove filetypes.h and Scintilla includes from geany.h; Add VALID_DOC_IDX macro
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 20:39:59 +00:00
Enrico Tröger
d79e82f633 Moved prototype for geany_debug() to main.h.
Moved declaration of document struct to document.h.
Keep selection when commenting and uncommenting code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@750 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 15:47:18 +00:00
Enrico Tröger
53d91a4c55 Fixed wrong behaviour of Save As on unchanged files.
Don't set file as changed when changing encoding to the same one.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@663 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-02 10:50:53 +00:00
Nick Treleaven
db4cf9e59f Apply the tab width setting for new documents
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@658 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-01 13:24:58 +00:00
Enrico Tröger
0ba2c566da Oops, forgot these files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@601 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-22 02:06:30 +00:00
Nick Treleaven
96a4a059df Added Find button to Replace dialog to skip a match; Change Replace button to find first & use current selection; Ask whether to wraparound when replacing and no next match is found
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@597 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-20 21:19:18 +00:00
Enrico Tröger
6516c31a6a Moved document related functions from utils.c to document.c.
Keep cursor position when replacing tabs by spaces.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@572 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-17 10:42:26 +00:00
Enrico Tröger
b3dd894a5e Implemented simple printing support.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@505 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-29 17:14:52 +00:00
Nick Treleaven
13b673d8ed Go back to the same line when reloading. Fix start selection bug when clicking in the current file if it has changed
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@468 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-20 11:55:34 +00:00
Enrico Tröger
73384bb248 Implemented code for setting indicators while compiling.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@442 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-13 19:37:21 +00:00
Enrico Tröger
c4125cf12f document_open_file() returns the index of the opened file.
Open or switch to files when clicking on compiler error messages and the error message mentions another file than the opened one.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@434 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-11 22:39:11 +00:00
Nick Treleaven
79b4256758 Fix bug with Go to tag defn/decl when the filename is a link (TagManager dereferences linked filenames)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@421 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-07 21:24:15 +00:00
Nick Treleaven
42e71c36cf Make Replace in selection non-incremental and use single Undo blocks for this and for Replace All
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@364 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-25 15:32:03 +00:00
Enrico Tröger
7a6efd0667 improved tag list updating, should be a bit faster on opening files
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@322 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-10 23:06:47 +00:00
Enrico Tröger
6409cf8926 implemented folding
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@227 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-02-26 18:19:28 +00:00
Enrico Tröger
dc4a72b969 improved filename handling on saving files, improved behaviour of HOME/END keys on wrapped lines, smaller changes
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@187 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-02-10 20:56:17 +00:00
Enrico Tröger
9a80c4c39c minor changes, added document_init_doclist()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@117 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-01-11 18:38:17 +00:00
Enrico Tröger
5deab2b6e5 improved usage of config.h and cleaned some header files from unneeded includes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@89 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-12-29 19:50:50 +00:00
Enrico Tröger
8cb2cf0997 Initial import
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-11-22 12:26:26 +00:00