Enrico Tröger
812d9cc480
Minor reformatting
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4884 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-08 13:10:33 +00:00
Enrico Tröger
fc27d57914
Don't auto-close short XML tags ( closes #2994852 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4883 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-08 13:10:24 +00:00
Enrico Tröger
8371e2ead3
Apply foreground and background colours of the folding margin style properly ( closes #2998347 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4882 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-08 13:10:14 +00:00
Nick Treleaven
64afb8a637
Avoid connecting signals more than once.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4881 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-07 13:21:32 +00:00
Nick Treleaven
435a479d98
Reload templates if saving a document in the templates config dir.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4878 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-06 12:45:19 +00:00
Nick Treleaven
653a76b2f0
Fix marking some strings as translatable (cannot be done in the
...
ASSIGNIF macro).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4877 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-06 12:03:11 +00:00
Nick Treleaven
fdfbd2efb4
Add symbols_get_context_separator() to plugin API (patch by Colomban
...
Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4876 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-05 16:26:25 +00:00
Nick Treleaven
31571a39cf
Add {project}, {description} template wildcards ( #2954737 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4874 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-05 13:06:53 +00:00
Nick Treleaven
bf09ed5c48
Fix replacing {filename} template wildcard for custom file
...
templates with non-default file extension.
Add search_find_text() for POSIX regex searches.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4873 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-05 12:50:59 +00:00
Nick Treleaven
f38b468348
Add function document_apply_indent_settings() for use later.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4872 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-05 12:07:45 +00:00
Nick Treleaven
a04d999014
Move debug-only variable cl into printfcmds().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4871 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-03 15:43:07 +00:00
Nick Treleaven
8c7ccac2f4
Realign some macros.
...
Don't align local variable declarations.
Add blank line after variable declarations.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4870 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-03 15:31:11 +00:00
Nick Treleaven
700e6e96bf
Add sci_set_line_indentation(), sci_get_line_indentation() to API
...
(patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4869 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-03 14:46:32 +00:00
Nick Treleaven
f97b90c37d
Fix setting wrong accelerator for 2 Edit->Commands items (patch by
...
Anonymous, #2995593 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4868 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-03 14:38:25 +00:00
Nick Treleaven
16c87d5e7e
Warn user if hidden hard tab width setting is not 8.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4867 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-30 15:02:33 +00:00
Nick Treleaven
1b51823339
Hide 'Tabs and Spaces: Hard tab width' preference - it should
...
always be 8. (Hidden setting kept in case users have modified it).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4866 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-28 13:08:15 +00:00
Enrico Tröger
317a21b9a3
When switching documents, don't call document_set_text_changed() as this does much more than necessary. Instead call the necessary UI update functions explicitly.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4864 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-27 15:09:34 +00:00
Enrico Tröger
8c963d2829
Make string arguments const where appropriate (patch by Colomban Wendling, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4862 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:43:39 +00:00
Enrico Tröger
f12ed2fabe
Fix broken opening URLs e.g. when using the 'builtin' Run command.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4860 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:42:56 +00:00
Enrico Tröger
1cac20b8da
Remove malloc() fallback since we completely rely on g_malloc() nowadays.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4859 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:42:43 +00:00
Enrico Tröger
4d34795c94
Declare document_stop_file_monitoring() as static.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4858 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:42:33 +00:00
Enrico Tröger
95d82159a8
Change the limit for the command line length when executing commands to a maximum of 32768 characters ( closes #2979697 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4856 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:42:12 +00:00
Enrico Tröger
2f63860908
Replace g_vsnprintf() by g_strdup_vprintf() to avoid truncated strings in case of reaching the buffer size limit (part of #2979697 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4855 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:42:01 +00:00
Nick Treleaven
751f8be508
Support more folding icon styles: arrows, +/- and no lines
...
(#2935059 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4854 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-22 17:16:46 +00:00
Nick Treleaven
cbf9813632
Recalculate line margin width when zooming ( fixes #2990553 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4853 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-22 16:02:45 +00:00
Nick Treleaven
6786e05e03
Support {pc} wildcard in snippets to escape percent char.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4852 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-22 13:01:45 +00:00
Nick Treleaven
7b8d62a255
Constify some more string pointers in the API (patch by
...
Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4851 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-22 12:25:20 +00:00
Nick Treleaven
379aee232a
Make plugin_signal_connect() string argument const (patch by
...
Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4850 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-22 12:03:37 +00:00
Enrico Tröger
df8e08dbe8
Fix Windows build by properly guarding Unix-only code.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4848 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-21 18:50:48 +00:00
Nick Treleaven
cdd93f7ab8
Support {ob} and {cb} wildcards for snippets too ( fixes #2937008 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4847 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-21 17:19:27 +00:00
Nick Treleaven
f1b7fc0fad
Mention editor-notify signal in dox.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4846 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-21 17:16:27 +00:00
Nick Treleaven
216bf2e5f5
Fix Class Builder plugin to use correct indentation instead of
...
always tabs.
Make editor_insert_text_block() only replace leading tabs for the
'Tabs' indent type; also group edits for undo.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4845 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-21 17:04:31 +00:00
Nick Treleaven
90ddffd836
Support {ob} and {cb} in fileheader and file templates; they are
...
replaced last with { and }. This allows 'escaping' of wildcard
strings (fixes #2937008 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4843 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-21 16:47:54 +00:00
Enrico Tröger
45b4cd4a7d
When starting and trying to access the Unix Domain socket of a potentially running instance, first compare file ownership with the user id of the running process to prevent accessing a wrong socket file (part of #2985463 , this might not yet be the final solution).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4842 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-19 21:20:15 +00:00
Enrico Tröger
9761d8057d
Properly guard the automatic sidebar notebook tab hiding against older GTK versions
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4841 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-19 20:48:54 +00:00
Enrico Tröger
c499da1b4d
Add a static global variable to monitor autocompletion mode in order to prevent cancellation of the struct/class (C/C++) auto completion list (patch by Thomas Martitz, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4840 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-19 20:42:44 +00:00
Enrico Tröger
fd6bf166af
Automatically show and hide the sidebar notebook tabs according to the amount of visible pages (patch by Adrian Dimitrov, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4839 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-19 20:42:34 +00:00
Enrico Tröger
d84a498ff7
Fix Ctrl-Click on notebook tab if Numpad is active.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4831 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-18 21:42:12 +00:00
Enrico Tröger
b9d32c470c
Add 'Remove Markers' and 'Remove Error Indicators' keybindings.
...
Add missing documentation for 'Reset Zoom' keybinding.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4827 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-17 14:55:14 +00:00
Enrico Tröger
85cded2a87
Remove unused code.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4824 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-17 14:34:19 +00:00
Enrico Tröger
7159c7c371
Add new command line option --list-documents to return a list of currently opened documents ( closes #2979933 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4820 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-11 21:56:50 +00:00
Enrico Tröger
10bdf624db
Instantly update the toolbar icon size and style when the corresponding global GTK settings are changed.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4819 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-11 21:56:34 +00:00
Enrico Tröger
fef3ee8fc5
Shorten the toolbar popup menu, only provide items for Toolbar Preferences and to Hide the toolbar.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4818 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-11 21:56:23 +00:00
Enrico Tröger
e28ca32274
Add option 'System Default' for toolbar icon style and size to use the GTK default value.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4817 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-11 21:56:08 +00:00
Nick Treleaven
ebfa9d75c3
Improve API docs for editor_insert_text_block().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4814 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-09 12:46:55 +00:00
Nick Treleaven
14b69a3363
Update status bar after using Document->Set Line Endings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4813 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-09 12:30:28 +00:00
Nick Treleaven
559aebd1b2
Fix inserting snippets with an indent when using Mac CR line
...
endings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4812 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-09 12:09:16 +00:00
Nick Treleaven
18a7e2ef08
Fix indenting a snippet when there is whitespace after the
...
snippet key name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4811 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-08 16:26:36 +00:00
Nick Treleaven
664333b8c8
Fix mem leak with snippets_find_completion_by_name().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4810 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-08 15:56:08 +00:00
Nick Treleaven
e7d790d926
Refactor snippets_complete_constructs().
...
Remove an unnecessary TODO.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4809 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-08 13:54:08 +00:00