379 Commits

Author SHA1 Message Date
Nick Treleaven
cf35a8a495 Revert r4301 - utils_free_pointers() taking 4 arguments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4321 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 16:15:28 +00:00
Nick Treleaven
6befde884b Add word part autocompletion for the current selected item when
pressing Tab - Enter still completes normally.
Add foreach_str() API macro.
Temporarily modify scintilla to say if tab was used for
autocompletion.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4320 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 14:57:11 +00:00
Nick Treleaven
46ef07f0ab Change many SSM() macros to use sciwrappers.h instead.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4319 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-14 16:00:40 +00:00
Nick Treleaven
bb6526e717 Remove unnecessary case statement braces.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4318 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-14 15:40:12 +00:00
Nick Treleaven
7b18977916 Remove unnecessary CalltipReshowInfo struct - as the calltip reshowing is delayed, autocompletion has already worked normally.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4317 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-14 14:29:05 +00:00
Nick Treleaven
49a8d9dc0b Use sci_insert_text() instead of SSM().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4316 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-14 14:13:24 +00:00
Nick Treleaven
f36c9024a3 Make utils_free_pointers() take 4 arguments, add to API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4301 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-12 16:03:10 +00:00
Enrico Tröger
058cb32aa7 Fix integer conversion
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4213 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-20 19:09:24 +00:00
Nick Treleaven
b25e3e9650 Remove queue.[hc] - use GQueue instead of GeanyQueue.
Beep if there are no more snippet positions.
Limit length of snippet positions queue to 20.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4204 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-17 17:37:13 +00:00
Nick Treleaven
5b708760cf Make editor_prefs.snippets hash table private (not a pref).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4200 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 17:30:30 +00:00
Nick Treleaven
1986d915cc Run ./scripts/fix-alignment.pl -w src/*.[hc] plugins/*.[hc] (skipping generated files).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 14:13:38 +00:00
Nick Treleaven
14e4bc7239 Change snippet_goto_next_cursor() to
editor_goto_next_snippet_cursor() as it's in editor.h.
Avoid using GPOINTER_TO_INT macro.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4190 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-14 17:28:07 +00:00
Nick Treleaven
c100272031 Add sci_set_marker_at_line(), sci_delete_marker_at_line(),
sci_is_marker_set_at_line() to the plugin API (thanks to Yura
Siamashka).
Add sci_toggle_marker_at_line().
Fix SciFuncs alignment.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4178 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-12 17:39:49 +00:00
Enrico Tröger
2403d3ade8 Fix non-working Home and End keys on numpads.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4103 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-17 22:04:13 +00:00
Enrico Tröger
2f40458fdb Temporarily disable reshowing calltips when the autocompletion list was closed implicitly by not choosing an item to fix problems with wrongly displayed calltips.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4087 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-15 17:21:30 +00:00
Nick Treleaven
6bd343b21d Rename 3 sci functions to sci_set_target_start(),
sci_set_target_end(), sci_replace_target() to match the SCI_
message name.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4042 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-29 17:54:48 +00:00
Nick Treleaven
eb1dd10e1d Fix reshowing calltip in the wrong document.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4038 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-28 14:29:34 +00:00
Nick Treleaven
aa89783b74 Add 'Reflow lines/paragraph' keybinding, defaults to Ctrl-J.
Heavily based on a patch by Eugene Arshinov (thanks).
Add sci_lines_split(), sci_lines_join(), sci_text_width(),
editor_strip_line_trailing_spaces().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4025 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-24 15:44:14 +00:00
Enrico Tröger
8295be5367 Reshow calltips also when the autocompletion list was closed implicitly by not choosing an item.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4022 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-24 10:40:48 +00:00
Enrico Tröger
d639b8b4ed Attempt to fix reshowing calltips after the autocompletion list has been shown.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4021 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-24 09:59:23 +00:00
Nick Treleaven
7a77c3a214 Fix scrolling horizontally after finding a search match with the
search bar or Find Next/Previous which is off-screen.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4016 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-23 16:54:32 +00:00
Nick Treleaven
3c8b3f1cb2 For the Tabs indent type, remove spaces when unindenting (only) if
there are no tabs on the line.
Group undo actions for (un)indenting of multiple lines.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4015 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-23 16:23:28 +00:00
Enrico Tröger
39a74c5a18 Continue unifying usage of @a and @c markup elements in API docs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4010 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-21 22:12:13 +00:00
Nick Treleaven
c07e7af183 Allow autocompletion in Perl double-quoted strings.
Don't autocomplete in Perl single-quoted strings (closes #2821061).
Don't autocomplete in Perl q() strings.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3961 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-14 11:04:52 +00:00
Nick Treleaven
10b519d786 Properly fix wrong brace highlighting of non-brace character.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3960 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-14 10:32:32 +00:00
Nick Treleaven
dbb805a06c Improve wrong brace highlighting of non-brace character.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3958 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-13 16:29:43 +00:00
Nick Treleaven
bb7a91f43e Delay highlighting matching braces by 100ms, which speeds up
scrolling with the arrow keys.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3948 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-10 14:03:16 +00:00
Nick Treleaven
70ff740e72 Support 'tab indents, space aligns' style for auto-indentation
(closes #2789109).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3945 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-09 14:20:22 +00:00
Nick Treleaven
979585dbb6 If autocompletion is already visible when forcing completion, show
document word completion instead of tag completion.
Docs: Minor edits of related prefs items.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3943 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-09 11:54:14 +00:00
Nick Treleaven
67ae2b4931 Add 'Drop rest of word on completion' pref.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3942 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-09 11:18:45 +00:00
Nick Treleaven
a0aa8b9919 Ignore autocompletion in D WYSIWYG strings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3932 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-08 15:47:38 +00:00
Nick Treleaven
ab002c80f2 Show autocompletion icons for tag symbols - for now only tags with
an arglist have the 'function/method' icon, all others have the
'variable' icon.
Note: XPMs were created from the PNGs with the ImageMagick 'convert'
program.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3930 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-08 14:51:25 +00:00
Nick Treleaven
aee6e14840 Fix ignoring latex completion for non-latex filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3929 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-08 12:40:57 +00:00
Nick Treleaven
d772abe98d Fix limiting number of word completion entries too much.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3928 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-08 12:35:54 +00:00
Nick Treleaven
d2595b5e96 Add 'Autocomplete all words in document' pref.
Use 'autocompletion' in dialog and docs, not 'auto completion'.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3927 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-08 12:29:20 +00:00
Enrico Tröger
259639f3ee Use the new Scintilla struct names prefixed with 'Sci_'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3912 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-04 09:20:28 +00:00
Enrico Tröger
1dfbd05268 Remove unnecessary enums.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3910 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-04 09:18:01 +00:00
Enrico Tröger
baef23dc2c Make the Scintilla keybindings 'Delete to end of line' and 'Go to end of display line' configurable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3905 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-29 19:46:49 +00:00
Nick Treleaven
60efb960e9 Beep when trying to activate the '...' autocompletion item.
Limit (forced) document word completion to
autocompletion_max_entries.
Beep if no completions are shown when forcing autocompletion.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3897 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-25 15:57:11 +00:00
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
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
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
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
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
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
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
5acdfaf4e0 Parse Python calltips.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3809 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-20 15:38:04 +00:00