Enrico Tröger
366ebbe90f
Fix LaTeX environment auto completion with CR/LF line endings.
...
Add some sanity checks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4496 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 15:38:14 +00:00
Frank Lanitz
a0c35e487b
Extend auto_latex() function to check whether an environment has been closed within the next lines to avoid auto adding double \end{}.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4493 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 12:03:28 +00:00
Enrico Tröger
8153aa2877
Allow autocompletion for HTML entities even within a word.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4413 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-09 19:06:30 +00:00
Nick Treleaven
57d2d4181b
Add general function sci_get_string() that works with any string
...
buffer messages that follow the Windows message convention.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4385 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-28 16:32:22 +00:00
Nick Treleaven
5a1c02bb21
Fix using tab to autocomplete in some other situations that word part
...
completion doesn't apply in.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4379 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-27 15:38:40 +00:00
Nick Treleaven
635b664f3f
Sort document word completion list.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4376 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-27 13:06:04 +00:00
Nick Treleaven
42119d8f3b
Add 'Word part completion' keybinding so keys other than Tab can be
...
used, or to clear/change the combination so Tab does full completion
like before.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4344 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-20 15:35:44 +00:00
Nick Treleaven
ce31ebda16
Don't complete snippets if there's a selection.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4331 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-16 16:42:38 +00:00
Nick Treleaven
a7f252dd3f
Improve CamelCase word part autocompletion for runs of capital letters.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4330 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-16 16:36:09 +00:00
Nick Treleaven
fc00f011c8
Improve word part autocompletion so AC list is not cancelled and
...
reshown (this also stops the selection changing).
Add SCI_AUTOCGETCURRENTTEXT message (will be sent upstream).
Merge Scintilla.h, Scintilla.iface from upstream.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4327 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-16 12:13:01 +00:00
Nick Treleaven
120af21ccb
Call editor_apply_update_prefs() from editor_create_widget() so
...
correct tab width and other settings are applied for Split Window
plugin.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 17:55:30 +00:00
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