167 Commits

Author SHA1 Message Date
Nick Treleaven
fb6a87a05b Refactor get_session_file_string() from
configuration_save_session_files().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2542 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-29 12:00:13 +00:00
Nick Treleaven
7bffaa3b17 Refactor open_session_file() from configuration_open_files().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2541 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-29 11:30:19 +00:00
Nick Treleaven
af67ff3cd5 Make disk check timeout configurable in the prefs dialog Files tab.
Make a value of zero disable disk checks.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2520 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-23 16:53:40 +00:00
Nick Treleaven
a832015fff Move non-general compile-time constants into their relevant source
files.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2519 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-23 16:47:42 +00:00
Nick Treleaven
a6ddfc2221 Move plugin keyfile pref saving and loading to plugins.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2491 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-16 15:09:52 +00:00
Nick Treleaven
a17610af72 Ignore documents with no absolute path when saving session files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2425 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-27 17:26:09 +00:00
Enrico Tröger
99a3d8e3c3 Add preference for not using the current word under the cursor when opening Find dialogs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2389 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-23 16:29:43 +00:00
Enrico Tröger
0d5614a2d4 Use the default values for various tools if they don't exist in the config file instead of using g_find_program_in_path(), patch by Yura Siamashka (thanks).
Fix executable check for grep command.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2331 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-13 09:33:23 +00:00
Enrico Tröger
89215d5c87 When opening session files, don't try to set document properties if the document can't be opened.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2311 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-07 14:21:01 +00:00
Enrico Tröger
b7bfb2743a Replace all C++-style comments with usual C-like multi-line comments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2287 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-27 13:17:29 +00:00
Enrico Tröger
22d96653da Rename hidden pref auto_complete_whilst_editing to complete_snippets_whilst_editing.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2269 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-21 15:51:50 +00:00
Enrico Tröger
85f73129c0 Apply patch from Daniel Richard G. to fix to fix several compiler warnings, C89 violations and minor code problems (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2267 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-20 11:24:23 +00:00
Enrico Tröger
6413fdb2bf Add hidden preference to disable scrolling past end of document.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2260 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-15 16:34:30 +00:00
Nick Treleaven
4825bfc10f Fix saving project session from a 2nd instance of Geany.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2202 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-31 16:31:19 +00:00
Enrico Tröger
5a1b51bc84 Add option for project session files support.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2176 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-16 16:30:34 +00:00
Enrico Tröger
748d552168 Save project session file list when project is closed.
Don't load default session files in a second instance after a project was closed.
Fix not updating symbol list (and other things) when changing tabs after a project was opened or closed in a second instance.	       


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2171 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-13 17:50:04 +00:00
Enrico Tröger
8977c301a7 Try to fix changing message window height when using full screen (closes #1869415).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2166 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-12 10:14:58 +00:00
Nick Treleaven
f2ab079305 Add 'Override Geany keybindings' VTE prefs dialog option (replaces
hidden pref), and make it off by default.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2158 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-10 17:11:19 +00:00
Enrico Tröger
e3201062c6 Update copyright information and change format of email addresses in source files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2150 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-06 18:11:57 +00:00
Enrico Tröger
0d92c102b5 Use project's base dir and run command when running commands in the VTE.
Add VTE preference to skip the generated run script. when running commands in the VTE.
Make vte_cwd() accept also paths not only filenames.	       


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2105 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-17 16:58:26 +00:00
Enrico Tröger
47c7c69214 Add Move document first/last keybindings (patch by Catalin Marinas, thank you).
Add toolbar items to increase/decrease indentation (closes #1850697).	     


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2104 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-16 16:54:47 +00:00
Enrico Tröger
c5ad06494b Fix wrong file filters in file dialogs opened in the preferences dialog.
Fix wrong debug display of filenames which could not be loaded from last session.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2096 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-09 16:59:21 +00:00
Enrico Tröger
80532b616d Store more document-related settings session-based in the configuration file(including the file encoding).
Detect in-file specified file encoding by scanning the file using regular expressions.	    


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2093 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-07 14:13:05 +00:00
Enrico Tröger
de8caa6055 Remove obsolete SVNdiff plugin, use the VC Diff plugin.
Add option for amount of characters to trigger symbol completion.
Add document_find_by_filename to the plugin API.		


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2084 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-01 17:53:36 +00:00
Enrico Tröger
2b07283739 Add plugin manager dialog to select plugins to load at startup and to call a plugin configure dialog.
Add configure symbol for plugins which is called by Geany when a configure dialog for the plugin is requested, optionally.
Add author field to plugin info struct.
Add sample configure dialog to the demo plugin.
Fix cleanup code in filebrowser plugin to remove it completely when unloaded.			


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2060 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-20 18:15:46 +00:00
Enrico Tröger
26f6490c41 Apply patch from Bo Lorentsen to improve support for project session files (thank you).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2057 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-18 18:24:23 +00:00
Enrico Tröger
6dc14025ea Add hidden pref to hide symbol list treeview expander (GTK >= 2.12).
Double click on symbol list sections now expands/collapses them.      


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2054 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-18 15:09:28 +00:00
Enrico Tröger
fff66178da Add native GTK printing support.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2050 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-17 14:04:27 +00:00
Enrico Tröger
4b43e762d0 Rename "Contruct autocompletion" to "Snippets".
Allow changing height of the symbol completion list even if automatic symbol is disabled, it still can be forced by keybinding.	 


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2044 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-12 09:27:43 +00:00
Enrico Tröger
836c368d50 Apply patch from Bo Lorentsen to add support for project session files (thank you).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2043 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-11 19:06:41 +00:00
Enrico Tröger
dba689edf2 Fix broken window maximization.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2008 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-02 13:03:54 +00:00
Nick Treleaven
601dfd69f7 Make msgwin_status_add() only log a message, not display it on the
status bar.
Make ui_set_statusbar() take a log argument for whether to record the
message in the Status window.
(Plugin API functions already do this).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1971 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-24 10:52:48 +00:00
Enrico Tröger
fbe1d5429d Fix possible wrong window title when loading session files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1964 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-20 14:57:37 +00:00
Nick Treleaven
5f688c6294 Apply patch from Catalin Marinas to add a 'newline strips trailing
spaces' pref (thanks).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1956 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-18 11:52:47 +00:00
Nick Treleaven
a2589f87fa Add Indent Type option in the Document menu.
Add 'Detect from file' Editor indentation pref.
Show TAB or SP for current document's indent type.
Minor editing of Document menu and editor Indentation prefs group.
Use GString for statusbar statistics.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1953 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-17 12:27:07 +00:00
Enrico Tröger
1d9c244ad1 Add menu accelerators to the symbol and open files list popup menus.
Add option to display full path name in the open files list.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1941 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-13 09:28:26 +00:00
Nick Treleaven
5b6b03c058 Move and rename the bash shortcuts hidden preference - it's now in
geany.conf, [VTE] section, called 'enable_bash_keys'.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1927 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-02 16:20:44 +00:00
Nick Treleaven
d910f01d0f Don't overwrite hidden prefs when quitting unless they are missing.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1926 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-02 15:43:16 +00:00
Nick Treleaven
031ba827a5 Fix possible conflict of 'tmp' variable name in setptr macro.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1914 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-27 15:09:54 +00:00
Enrico Tröger
86adc018ba Don't load invalid window geometry data from the config file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1912 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-27 11:29:54 +00:00
Nick Treleaven
8fe569692f Save and restore the current notebook page when quitting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1888 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-18 16:04:22 +00:00
Nick Treleaven
001cc916b4 Allow autocompletion on a line with trailing whitespace.
Add auto_complete_whilst_editing hidden preference.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1875 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-12 12:08:07 +00:00
Nick Treleaven
274058eb7a Neaten up the plugin API:
Make document_open_file() now wrap document_open_file_full(),
without the idx for reloading or pos arguments.
Replace str_replace() with string_replace_all() in the plugin API.
Add utils_string_replace_all(), taking a GString argument.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1868 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-11 15:21:11 +00:00
Nick Treleaven
5bb7a8ecd2 Add 'Current chars' indentation mode, rename 'Advanced' indentation
to 'Match braces' (closes #1726880).
For 'Match braces' indentation, if a brace could not be matched,
fall back to 'Current chars' indentation.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1836 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-29 15:14:07 +00:00
Nick Treleaven
fd161f582d Add hidden editor preference 'use_gtk_word_boundaries'.
Add docs appendix 'Hidden preferences'.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1834 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-28 15:45:54 +00:00
Nick Treleaven
1882e29768 Group settings in load_dialog_prefs() by dialog tab.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1833 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-28 15:10:13 +00:00
Nick Treleaven
ccc27ac11b Refactor configuration_load().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1830 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-27 16:54:15 +00:00
Nick Treleaven
8d2b262224 Group prefs in order for save_dialog_prefs().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1829 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-27 16:39:49 +00:00
Enrico Tröger
edc0ceaad6 Add version to plugin info fields and two other fields for future use.
Add option to show/hide the small crosses on each file tab (closes #1757680).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1826 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-25 14:16:52 +00:00
Nick Treleaven
b401b698ea Move file-related fields from EditorPrefs -> GeanyPrefs.
Rename line_breaking -> line_wrapping for EditorPrefs and document.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1823 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-24 16:20:33 +00:00