Nick Treleaven
3070616e2d
If forcing autocompletion and there's nothing else to show, complete
...
from words in the current document (using code from Enrico's
'AutoComplete Test' plugin).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3893 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-24 12:26:09 +00:00
Nick Treleaven
e3edfba0cd
Add debug message if plugin has not set a name for its keybinding
...
group.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3891 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-23 12:51:16 +00:00
Nick Treleaven
0a65df77d1
Make filetypes.common named styles use the "default" named style for
...
all missing style fields.
Set named styles to usually leave the background style empty. This
currently allows C-like filetypes to have a common default
background color.
Allow hard-coded colors to use -1 for the default color.
Add some highlighting style examples to the manual.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3890 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-22 15:26:44 +00:00
Nick Treleaven
69c1173478
Minor typos.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3888 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-22 15:08:44 +00:00
Enrico Tröger
f6f3b2c13a
Avoid duplicate code.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3886 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-21 21:19:30 +00:00
Enrico Tröger
13fe19aaa1
Create initial template files with proper platform-specific line ending characters.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3885 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-21 21:19:18 +00:00
Enrico Tröger
33fe023ac7
Invert the logic to determine which Save All we want to use:
...
Use the Tango like icon only for the Tango theme and the Gnome / GTK like icon for any other themes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3884 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 17:32:55 +00:00
Enrico Tröger
8d18b3c2fa
Init stock items before creating the toolbar ( closes #2809324 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3882 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:53:28 +00:00
Enrico Tröger
2b49ec41c4
Refactor the keybindings code for the preferences dialog, prefix all related functions.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3881 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:53:12 +00:00
Enrico Tröger
0a99835e76
Add a popup menu for the keybinding list in the preferences dialog to easily expand and collapse all groups.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3880 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:52:58 +00:00
Enrico Tröger
749cc9e2ce
Fix LaTeX view commands on Windows (part of #2807688 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3879 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:52:44 +00:00
Enrico Tröger
d4700f094e
Properly clean up the logging mechanism.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3878 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:52:30 +00:00
Enrico Tröger
8b5b6287e1
Instantly reload (i.e. rebuild) the toolbar when ui_toolbar.xml is saved within Geany.
...
Refactor some related code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3874 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:51:32 +00:00
Nick Treleaven
385ce9f9a9
Remove gsd_* default styles, use named styles instead.
...
Note: this relies on filetypes.common being installed.
Add load_style_entries(), which makes style initialization
simpler, used in styleset_c_like_init().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3873 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-18 14:20:07 +00:00
Enrico Tröger
0c97d49ed2
Add style 'jscript_regex' for filetype HTML (patch by Chris Macksey, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3872 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-17 19:04:17 +00:00
Enrico Tröger
ca1e027925
Prevent possible crash on Windows when not setting an initial directory for native File Open/Save dialogs.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3871 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-17 18:18:46 +00:00
Nick Treleaven
e386064d5a
Only autocomplete scope for scopes matching the current filetype's
...
language.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3869 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-17 10:56:37 +00:00
Nick Treleaven
e1ecc75f44
Make GeanyDocument::file_type always be non-NULL, even for a new
...
document with no filetype set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3868 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-17 10:46:43 +00:00
Enrico Tröger
d55fa1d975
Don't explicitly change the current directory of the Save As dialog so that it uses the last used directory.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3867 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-16 21:25:04 +00:00
Enrico Tröger
c5d9af4e43
When completing from the macro list, put the cursor after the inserted text.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3866 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-14 10:41:10 +00:00
Enrico Tröger
42578b0eaf
Remove dead code.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3865 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-14 10:31:44 +00:00
Enrico Tröger
9d9f40cd15
Add Japanese encoding "CP932" (patch by Ryūsei Yamaguchi, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3864 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-14 10:24:06 +00:00
Nick Treleaven
f56cad490e
Remove data_ptr argument to foreach_[s]list() macros, as using
...
node->data is enough sometimes; this makes the macro a bit more
efficient too.
Add foreach_[s]list() macros to the plugin API docs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3862 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-12 15:32:35 +00:00
Nick Treleaven
6dc41e053e
Don't autocomplete in unterminated strings as well.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3861 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-12 15:22:32 +00:00
Enrico Tröger
f0a4e5cdc0
Display calltips for Pascal symbols in the Pascal way ( #2803945 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3852 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-10 18:24:44 +00:00
Nick Treleaven
380cb1fc6b
Autocomplete scoped fields like struct members when typing '.' (and
...
also '->' or '::' in C/C++).
Save all tag types for C/C++ when generating a global tags file, so
we can use autocompletion for structs also.
Merge tm_workspace_find_scope_members(),
tm_workspace_find_namespace_members() (currently not built) from
Anjuta 2.24.1 tagmanager.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3850 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-10 12:36:13 +00:00
Nick Treleaven
aa4e9831c4
Add filetypes.common Configuration Files menu item.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3848 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-09 14:39:28 +00:00
Enrico Tröger
17657b71c9
Add backslash to the wordchars on Windows when using 'Open Selected File'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3846 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-08 19:16:23 +00:00
Enrico Tröger
3a03845045
Remove unnecessary libraries from linker flags.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3845 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-08 18:05:34 +00:00
Enrico Tröger
5c2a6f248d
Remove unnecessary libraries from linker flags.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3844 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-07 15:51:30 +00:00
Nick Treleaven
60c7d9e5cf
Fix segfault on parsing a filetypes.* style definition that has < 4
...
fields.
Allow style definitions to have missing fields to use the default
style fields.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3843 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-05 15:59:58 +00:00
Enrico Tröger
6f0d6d79ab
When closing a document, mark it as invalid before removing it from the documents notebook (this fixes wrong Save All button state when closing an unsaved document because the "switch-page" signal handler was using old data).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3842 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-05 15:57:01 +00:00
Nick Treleaven
1ec6e31584
Fix redrawing due to colourising just after the document is first
...
drawn. Now colourising should happen before the first draw.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3841 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-05 15:49:55 +00:00
Nick Treleaven
e719cecd24
Set status bar text instead of showing a dialog when saving
...
ui_toolbar.xml because the user might save several times.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3840 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-05 15:45:44 +00:00
Enrico Tröger
459d9e2962
Add a more Tango like icon for 'Save All' (by Jesse Mayes, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3837 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-05 14:00:08 +00:00
Nick Treleaven
e01537fe3e
Support toggling bold/italic when using a named style, e.g.:
...
commentdockeyword=commentdoc,bold,italic
Improve named style docs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3836 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-03 15:42:01 +00:00
Nick Treleaven
94025e5f89
Only use ":::" context separator for Conf, ReST, not all Misc group.
...
(Minor edit of yesterday's changelog.)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3835 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-02 14:45:23 +00:00
Enrico Tröger
09f5851d79
Fix crashes when parsing the output of a compiler which reports errors on line 0.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3834 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-01 21:51:33 +00:00
Nick Treleaven
221b3fda3a
Fix grouping symbol list children when parent name has "." character
...
in for reStructuredText and Conf filetypes (and any in the Misc
group).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3830 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-01 15:21:55 +00:00
Nick Treleaven
f678ee105a
Support named styles also for filetypes.common [styling] entries.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3828 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-01 13:46:21 +00:00
Enrico Tröger
11cb3f9efe
Add 'Replace' toolbar button ( closes #2798225 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3827 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-30 14:09:55 +00:00
Nick Treleaven
9d0abef4ee
Implement named styles support for filetypes.* using a
...
filetypes.common [named_styles] section e.g.:
foo=0xc00000;0xffffff;false;true
bar=foo
These can be used in e.g. filetypes.c as:
comment=foo
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3825 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-30 11:57:56 +00:00
Nick Treleaven
8906b19bac
Make get_keyfile_hex() call get_keyfile_style() to share code for future improvements. Adjust arguments to avoid parsing strings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3824 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-29 13:35:55 +00:00
Nick Treleaven
76ef2baa9d
Remove get_keyfile_keywords() constant argument, rename index argument.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3823 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-29 12:54:56 +00:00
Enrico Tröger
a073209940
Fix wrong sensitiveness of the Redo buttons ( closes #2797862 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3822 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-28 20:22:12 +00:00
Frank Lanitz
e82f8d512f
Add Luxembourgian translation
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3821 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-28 19:45:23 +00:00
Enrico Tröger
1c472c52c2
Minor cleanup
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3820 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-27 18:54:16 +00:00
Enrico Tröger
89c442d38a
Properly terminate the resulting strings when reading the stdout and stderr of any spawned commands on Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3819 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-27 18:34:39 +00:00
Enrico Tröger
538f2f5d25
On Windows, fallback to the literal build command line if searching for the command in the system path failed (related to #2795923 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3818 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-27 18:00:05 +00:00
Enrico Tröger
60797701e5
Remove quote_executable() as it is not used anymore.
...
When creating the geany_run_script.bat use the "%0" variable expansion and quote it for the "del" command (closes #2797172 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3817 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-27 17:21:51 +00:00