3136 Commits

Author SHA1 Message Date
Nick Treleaven
eafc95a59f Apply patch from Colomban Wendling to add Vala filetype (thanks).
Fix c.c tagLetter() bug.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3205 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 16:33:20 +00:00
Enrico Tröger
a163a443cc Remove unused lexers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3203 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 18:28:14 +00:00
Enrico Tröger
98cf47a6a8 When using custom file templates, add the extension of the template file to the filename of the new document.
Make {datetime} wildcard generally available for most template types.
Allow use of most available wildcards for custom file templates, too.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3202 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 18:27:23 +00:00
Nick Treleaven
0e54a39c9b Make Python symbol tree method icon look more like a function than
variable.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3201 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 17:31:45 +00:00
Nick Treleaven
d9184913a9 Add icons for Conf symbol tree items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3200 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 17:16:35 +00:00
Nick Treleaven
5329a0c59d Group Conf symbol list tags by section.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 17:03:11 +00:00
Nick Treleaven
1f6a611580 Merge symbol-tree branch:
Apply patch (with some reworking) from Conrad Steenberg
(gnocci-man) to show methods as children of classes in the symbol
list, and for other tag types to group children by their parents
(thanks; #2083110).
This works for any filetype that TagManager can parse tag scopes
for.
Fix not allowing a leading underscore when using scope name prefix.
Fix symbol-tree branch bug: missing C++ constructor declaration
tags.
- Code changes:
Use TMTag instead of GeanySymbol so the symbol tree can read the
scope without parsing it.
Free tag list straight after use, instead of next time the list is
generated.
Use TMTag pointer tree model column instead of line number.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3197 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 16:57:18 +00:00
Nick Treleaven
12e29d7ebd Make Version Diff plugin set the indent type for diffs based on the
current file's indent type.
Add editor_set_indent_type() to the API.
Note: uses editor.h plugindata.h include.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3194 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-08 13:32:55 +00:00
Nick Treleaven
1f1cbd4523 Make Ctrl-click go to matching brace if there's no current word.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3193 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-08 13:14:09 +00:00
Enrico Tröger
c1717671d8 Set SVN file properties
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3192 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 15:55:40 +00:00
Enrico Tröger
efcdca4057 Don't auto close <hr> tags in HTML (closes #2226117).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3191 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:40:06 +00:00
Enrico Tröger
474a0b4410 Add new filetype 'Matlab' (closes #1938631, patch by Roland Baudin, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3190 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:39:45 +00:00
Enrico Tröger
8bf87e009c Again, oops: this line got lost while merging.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3189 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:38:51 +00:00
Enrico Tröger
26f86a38a7 Oops, forgot to commit.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3188 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:38:38 +00:00
Enrico Tröger
af7aa43872 Allow showing remote locations in the file open dialog with GTK >= 2.14 since it works with Gvfs/FUSE mounts, too.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3187 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:38:13 +00:00
Enrico Tröger
de1839efd6 Formatting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3186 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:37:57 +00:00
Enrico Tröger
a0a04daeda Plug a little memory leak.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3185 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:37:42 +00:00
Enrico Tröger
99860e187a Add support for updating tags from a memory buffer (code merged from Anjuta).
This still doesn't work and is currently disabled. It would only work for a few filetypes like C, Fortran and JavaScript.
The current implementation is still buggy, e.g. function signature parsing is broken.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3184 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:37:17 +00:00
Nick Treleaven
71523b8a2b Fix segfault when showing Find in Files dialog when no documents are
open (r2998, #2228544).
Fix segfault for FIF from last commit (oops).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3182 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-06 17:26:29 +00:00
Nick Treleaven
a7e94bdf64 Refactor search_show_find_in_files_dialog().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3181 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-06 17:13:18 +00:00
Frank Lanitz
d0de0be03e Corrected a little typo in Hungarian translation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3180 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-05 23:08:24 +00:00
Nick Treleaven
fb6f59d85b Clarify that if patches don't follow existing code style, we'll have to manually reformat them ourselves.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3176 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-05 16:25:49 +00:00
Nick Treleaven
8b29e6b7f3 Fix sorting tags with missing parents by line if the names and
scopes are identical.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3174 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-05 12:58:53 +00:00
Nick Treleaven
c0064114ca Replace macro with static function.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3173 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-05 12:50:29 +00:00
Nick Treleaven
1d69b53f57 Fix sorting tags whose scope name doesn't have a tag (e.g. for C++
source file methods with class definition in a header file).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3172 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-04 18:14:04 +00:00
Nick Treleaven
a371bea2a0 Add bug number.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3171 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-04 13:43:30 +00:00
Nick Treleaven
eebfbbf488 Fix Prefs dialog Tools tab Context Action open button showing the
file dialog twice.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3170 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-04 13:33:08 +00:00
Nick Treleaven
8355e6a158 Fix snippets and smart indent using too much indentation when the
line contains whitespace after non-whitespace characters. This
might also have affected other features (auto table, etc).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3169 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-04 13:05:15 +00:00
Frank Lanitz
25f5f62a86 Little update of French translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3168 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-03 18:45:47 +00:00
Nick Treleaven
5f32d93886 Fix GLib warning when pressing Close File keybinding and no
documents are open.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3167 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-03 17:38:50 +00:00
Nick Treleaven
3b25dca469 Remove symbol tree 'skipped' code, instead sort parents first when
adding tree iters. This should fix missing symbols sometimes.
Use TMTag instead of GeanySymbol so the symbol tree can read the
scope without parsing it (fixes problems with '.' characters in tag
names for e.g. HTML).
Free tag list straight after use, instead of next time the list is
generated.
Use TMTag pointer tree model column instead of line number.
Fix not allowing a leading underscore when using scope name prefix.
Remember parent tree iter for a tag if it is used for a child tag's
scope, rather than just for tags of a certain type. This should be
more flexible for various filetypes.
Various symbol-tree code refactoring.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3166 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-03 17:25:35 +00:00
Frank Lanitz
56c4ad1b4a Little update of French translation. Closes #2210060.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3164 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-31 12:29:34 +00:00
Enrico Tröger
bae8ca23d7 Revert last change as it breaks (again) the primary X selection as well as the mouse cursor on the scrollbar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3163 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-30 15:23:27 +00:00
Frank Lanitz
ac5b3ff26d Little update of German translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3162 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-29 21:27:14 +00:00
Enrico Tröger
c9fc4a1048 Try to fix a weird bug in reparenting the notebook widget when splitting on Windows. It still occurs on unsplitting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3161 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-29 20:52:22 +00:00
Enrico Tröger
a3b27b3714 Enable generation of API documentation of tagmanager functions which are exposed in the plugin API, hide all others from the API docs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3160 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-27 19:17:28 +00:00
Enrico Tröger
b80c7e3236 Replace deprecated gtk_marshal_* functions with g_cclosure_marshal_* functions and add geany_cclosure_marshal_VOID__STRING_INT_POINTER.
Fix a wrong marshal type (pointer != int).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3159 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-27 19:17:11 +00:00
Enrico Tröger
c90b262434 Update docs for changed rectangular selection usage since Geany 0.15.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3158 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-27 19:17:00 +00:00
Enrico Tröger
631eb07c27 Handle UTF16/32 encoded files without a BOM better and allow them to opened (#2155573, patch by Jason Oster, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3156 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-26 14:16:09 +00:00
Enrico Tröger
0324ed71f6 Add *_full variants of editor indicator functions to the plugin API for more control over indicators.
Add/Update some API docs.
Make the 'Mark' button for Find highlight the results with rounded boxes instead of marking the whole line.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3155 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-25 18:57:00 +00:00
Enrico Tröger
15efd65343 Fix updating of the value of the toolbar Goto line spinbutton.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3154 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-25 18:56:38 +00:00
Enrico Tröger
1c46db7dd6 Add main_locale_init() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3153 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-25 18:56:27 +00:00
Enrico Tröger
af1c81efcb Fix doc comment.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3152 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-25 18:56:12 +00:00
Enrico Tröger
242f50ebd9 Fix deprecated usage of g_win32_get_package_installation_directory(), pass NULL as package name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3151 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-25 18:56:04 +00:00
Enrico Tröger
25a9d1c0e9 Issue a warning message when closing document fails.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3150 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-25 18:55:51 +00:00
Frank Lanitz
7c4a065c67 Added some more HTML entities.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3149 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-24 22:46:49 +00:00
Frank Lanitz
dde74a624e Update of French translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3148 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-24 19:30:43 +00:00
Enrico Tröger
d3ee6f48ca Add toolbar buttons for Cut, Copy, Paste and Delete (#2161750).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3147 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-23 20:55:55 +00:00
Enrico Tröger
c946d4ef91 Replace Goto line text entry field in the toolbar with a spin button.
Remove dialogs_show_goto_line(), use the more generic dialogs_show_input_numeric() instead.
Increase limit of the maximum line number from 99999 to 100000000.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3146 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-23 20:55:06 +00:00
Enrico Tröger
57c764867c Add simple auto-detection for HTML files without proper extension.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3145 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-23 18:44:05 +00:00