Nick Treleaven
7994128e38
Rename sci_cmd() to sci_send_command() to match the plugin API and
...
fix the generated macro name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3322 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 12:34:20 +00:00
Enrico Tröger
848f714ef1
Fix missing initialisation.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3321 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-05 12:11:32 +00:00
Enrico Tröger
ac72607ade
Add auto-closing of braces, brackets and quotes (patch by Guillaume de Rorthais, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3319 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 20:19:20 +00:00
Enrico Tröger
0f8b8a2f2f
Add new filetype 'YAML' (patch by Walery Studennikov, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3290 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 12:51:50 +00:00
Enrico Tröger
13682cfd10
Add editor_get_calltip_text().
...
Add tooltips for the symbol list items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3288 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-29 12:50:52 +00:00
Enrico Tröger
31a0755c3a
Make templates_replace_all() working on GStrings to fix various string replacement problems when using custom file templates.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3268 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-21 18:19:36 +00:00
Nick Treleaven
ffffc759b1
Remove now-unnecessary checks for geany_object != NULL.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3266 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-21 17:33:35 +00:00
Nick Treleaven
a2ceb60e3a
Make utils_free_pointers() take an arg_count argument to prevent
...
memory leaks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3245 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 17:14:00 +00:00
Enrico Tröger
18095fca79
Note: this breaks the plugin API for Editor and Scintilla functions.
...
Rename all functions in editor.c and sciwrappers.c which are related to indicators for more consistency.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3238 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:54:28 +00:00
Nick Treleaven
56cf2bc7ef
Make auto_table() use editor_insert_text_block().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3228 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-14 18:02:28 +00:00
Nick Treleaven
f07faeb9f7
Add editor_insert_text_block() newline_indent_size argument to add
...
fixed indentation on each newline, or -1 to read from insert_pos's
line.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3227 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-14 17:24:54 +00:00
Nick Treleaven
0ef7d92782
Fix bug with utils_string_replace_all().
...
Make utils_str_replace() call utils_string_replace_all() internally
(for better memory management and allowing replacements to match
search string).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3226 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-14 14:15:32 +00:00
Nick Treleaven
2c8bf0e2a9
Make editor_insert_text_block() transform any \n newline chars with
...
the correct line ending string.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3224 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 17:22:23 +00:00
Nick Treleaven
0cbbc2ede0
Make function editor_insert_text_block() interpret any \t tab chars
...
as indent widths when inserting text.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3220 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 16:29:10 +00:00
Nick Treleaven
a16dd54629
Fix indenting for Tabs & Spaces mode when inserting snippets.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3218 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 13:18:02 +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
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
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
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
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
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
Nick Treleaven
c64897b5a3
Don't connect editor callbacks when creating the editor widget for
...
the split window plugin (they didn't work anyway, except for
Undo/Redo).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3102 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-16 11:39:34 +00:00
Enrico Tröger
5249fde432
Fix for the last fix: do it the proper way by ignoring any modifiers we don't want, only check for Ctrl, Alt and Shift.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3064 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-10 16:35:25 +00:00
Enrico Tröger
656b466df0
Fix Ctrl-click on a word when Numpad is enabled.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3063 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-10 15:18:36 +00:00
Enrico Tröger
45e4b0bb89
Fix wrong cursor positioning while line breaking when the last character on the line was a space.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3057 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-07 18:52:09 +00:00
Nick Treleaven
ddf488dcb5
Fix segfault when holding Alt and scrolling editor window.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3051 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-07 12:14:57 +00:00
Nick Treleaven
0117b3e5b2
Apply patch from Jason Oster to auto-update the line margin width as
...
lines are added (thanks; #2129157 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3021 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-29 12:44:31 +00:00
Enrico Tröger
087872260f
Add new filetype 'Gettext translation file' ( closes #2131985 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3018 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-28 16:32:49 +00:00
Enrico Tröger
72cbba79f7
Make 'Line Breaking' UTF-8 safe (to work with non-ASCII characters).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3014 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-27 14:06:43 +00:00
Enrico Tröger
ac07cf386e
Fix unintentional switch fall-through (patch from Jason Oster, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3012 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 18:30:03 +00:00
Enrico Tröger
71dbd0f2d6
Make 'Previous/Next word part' keybindings configurable.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3011 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 18:29:42 +00:00
Nick Treleaven
46cae47182
Use GeanyDocumentPrivate instead of using inheritance for non-public
...
fields (this was unnecessary and meant using ugly casts).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3010 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 17:28:50 +00:00
Enrico Tröger
fb1d2abe5f
Fix typo.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3009 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 16:49:52 +00:00
Nick Treleaven
59cb3b2cce
Apply patch from Andrew Rowland to add support for the R language
...
(thanks, #2121502 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3004 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 12:23:59 +00:00
Nick Treleaven
1fb45e2dab
Return GEANY_AUTOINDENT_BASIC from editor_get_indent_prefs() if the
...
per-document pref is set, even if the global mode is none.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3002 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 11:22:44 +00:00
Enrico Tröger
83d6c2e8e2
Fix using direct Scintilla access in document.c and callbacks.
...
Add wrapper functions instead.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3000 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 18:29:53 +00:00
Enrico Tröger
f701893ef7
When using editor_get_eol_char_* functions with an invalid editor object, return the appropriate value according to the eol character preference (just in case).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2999 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 18:29:11 +00:00
Enrico Tröger
a032d6a660
Unify the API in editor.c, all public functions now take a GeanyEditor* object.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2998 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 18:28:37 +00:00
Nick Treleaven
ab9e3f1c75
Don't disable the per-document auto-indent pref when the global
...
auto-indent mode is set to none (undoes part of r2981). In this
case, the per-document pref just behaves like
GEANY_AUTOINDENT_BASIC.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2996 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 16:55:35 +00:00
Nick Treleaven
bce7d185b9
Rename get_indent() read_indent().
...
Fix possible overflow in auto_table().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2983 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-22 15:29:25 +00:00
Nick Treleaven
3828682705
Fix HTML table autocompletion when the indent type is 'Tabs &
...
Spaces' (#2118289 ).
Add some useful functions count_indent_size(),
string_append_indent_width().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2982 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-22 11:57:14 +00:00
Nick Treleaven
a00dc77177
Don't disable the auto-indent document pref when switching back to a
...
document with auto-indent turned off.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2981 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-22 11:12:54 +00:00
Enrico Tröger
a5fadbad40
Fix broken indentation of automatic HTML table tag completion (part of #2118289 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2980 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-21 16:44:30 +00:00
Enrico Tröger
437fafd46e
Move document_apply_update_prefs() in editor.c.
...
Refactor get_indent_guides_from_lexer() from sciwrappers.c in editor_set_indentation_guides().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2979 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-21 16:43:45 +00:00
Enrico Tröger
bab0991c36
Rename the new indicator functions and add documentation comment.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2973 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-18 13:27:10 +00:00
Nick Treleaven
5dde790601
Add 'Tab key indents' pref, which replaces hidden pref
...
'use_tab_to_indent'; it's now on by default.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2971 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-18 12:43:41 +00:00
Enrico Tröger
a6ce9b8a6d
Replace the usage of the old Scintilla indicator API by the new modern API and remove old hacks (patch by Jason Oster, thanks).
...
Add new sci_indic_clear() function to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2966 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-17 18:05:27 +00:00
Enrico Tröger
ab3c9a4f3d
API changes:
...
Rename sci_can_copy() into sci_has_selection().
Rename sci_find_bracematch() into sci_find_matching_brace().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2964 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-17 18:02:55 +00:00