Enrico Tröger
d79d5ea18c
Add special cases for handling the Select All keybinding (Ctrl-A) in the toolbar search and goto line text entries ( closes #2948040 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4661 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-13 16:13:00 +00:00
Enrico Tröger
54d1b3ae7e
Rename fold_symbol_click() to editor_toggle_fold().
...
Use editor_toggle_fold() when the 'Toggle current fold' keybinding was used to respect the 'Fold/unfold all children' preference (closes #2935053 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4542 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-24 16:30:29 +00:00
Enrico Tröger
de50230c68
Add keybinding to open the last closed tab ( closes #2912692 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4519 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 23:20:21 +00:00
Enrico Tröger
7ba4a81181
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 22:55:18 +00:00
Enrico Tröger
93f66de4e2
Add MessageWindow::scribble and use it instead of searching the widget pointer everytime.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4499 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 20:07:04 +00:00
Nick Treleaven
759a051347
Capitalize, add mnemonics, sync with kb.c the Edit->Commands menu item
...
labels.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4490 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-09 17:16:54 +00:00
Enrico Tröger
9f444ac698
Add keybindings_check_event() to manually check GdkKeyEvents against Geany's keybindings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4441 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-23 22:25:11 +00:00
Nick Treleaven
0a97a24b3e
Fix reflow paragraph command when cursor < anchor using
...
sci_fix_selection().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4424 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-12 15:46:05 +00:00
Nick Treleaven
dd1bb7c278
Fix moving correct lines after selecting whole line(s).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4404 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-05 18:11:10 +00:00
Nick Treleaven
17a336aa7c
Allow GeanyKeyBinding label field to contain underscores, which won't
...
be displayed by Geany. This saves adding near-duplicate translation
strings.
Add mnemonics for 3 Edit->Format menu items.
Add keybindings_get_label().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4389 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-29 11:59:55 +00:00
Nick Treleaven
b9f0304f57
Add 'Edit->Plugin Preferences' menu item and keybinding.
...
Don't include plugindata.h in pluginutils.h because it redefines the
GEANY() macro for plugin use.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4386 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-28 18:06:16 +00:00
Nick Treleaven
637d80945d
Add 'Reflow, Transpose, Smart line indent' Edit->Format menu items.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4384 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-28 11:33:11 +00:00
Nick Treleaven
f44d794388
Share a single Format submenu for menubar Edit and popup menu.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4382 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-27 18:10:39 +00:00
Nick Treleaven
1ca381c0a2
Change editor popup Commands submenu to start as child of menubar Edit
...
menu, as this is more usual e.g. for keybindings initialization.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4381 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-27 17:47:23 +00:00
Nick Treleaven
3615272ec1
Add some useful commands to editor popup menu under "Commands"
...
submenu (thanks to Lex).
Move 'Duplicate line or selection' from Format -> Commands submenu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4377 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-27 13:40:34 +00:00
Nick Treleaven
078a9cdc7d
Add 'Move line(s) up/down' keybindings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4354 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-22 11:28:59 +00:00
Nick Treleaven
225dd7d4dd
Add 'Switch to Messages' focus keybinding.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4347 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-20 16:59:00 +00:00
Nick Treleaven
af8d96f077
Add 'Select to previous/next word part' keybindings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4346 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-20 16:01:07 +00:00
Nick Treleaven
c21db70d46
Fix typo GEANY_KEYS_GOTO_[NEXT|PREV]WORDSTART -> WORDPART.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4345 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-20 15:45:07 +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
d83416fdd1
Fix warning when using Find in Files with no documents open; make
...
keybinding work in this case.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4315 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-14 14:07:28 +00:00
Nick Treleaven
a50c65602b
Don't include trailing newlines when using reflow command.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4309 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-14 11:46:56 +00:00
Nick Treleaven
f453cc456e
Add GeanyKeyGroup callback support, which allow keybinding callbacks
...
to be ignored if inappropriate so a later keybinding with the same
key combination can intercept it. (Also group callbacks are usually
tidier than separate callbacks).
Remove special handling for GEANY_KEYS_EDIT_COMPLETESNIPPET.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4300 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-12 11:50:45 +00:00
Nick Treleaven
caec1ec7c3
Rename treeviews.[hc] -> sidebar.[hc].
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4252 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-28 11:16:59 +00:00
Nick Treleaven
e34c8879d9
Only focus toolbar goto line entry when pressing keybinding if it's
...
visible (patch by Eugene Arshinov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4237 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-27 10:51:44 +00:00
Nick Treleaven
8cb41745c2
Apply patch from Lex Trotman to make 'Reflow block/lines(s)'
...
keybinding use line breaking column when enabled.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4231 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-24 11:26:59 +00:00
Nick Treleaven
4dd1081278
Make 'Go to Line' keybinding focus the toolbar entry if visible.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4221 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 17:11:42 +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
4097dfec5b
Make Goto Tag commands use the current selection if present (useful
...
for selecting part of a tag or for ReST section names with spaces
in).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4195 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 12:13:50 +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
d43aaa869e
Fix 'Reflow block' command when at the last paragraph and there's
...
no last newline (patch by Eugene Arshinov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4179 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-13 11:23:14 +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
Nick Treleaven
b0c53b1dc6
Fix Make keybindings (patch by Lex Trotman, thanks).
...
Fix recent ChangeLog entries.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4134 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-27 13:50:12 +00:00
Nick Treleaven
43620e7ce4
Remove GeanyKeyGroup struct from the API - plugins should not set
...
these fields.
Make keybindings_set_item() duplicate the name and label fields
(needed by GeanyLua) and return a keybinding pointer.
Add keybindings_get_item() to the API (in case it's useful).
Move some keybinding code out of plugin source files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4123 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-25 16:55:56 +00:00
Nick Treleaven
330e6aae6b
Merged trunk r4115 to build-system.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4116 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-24 12:00:26 +00:00
Nick Treleaven
770d40ab98
Update PLUGIN_KEY_GROUP() macro so it doesn't allocate any
...
GeanyKeyBinding or GeanyKeyGroup structs, so we don't need to break
the ABI when adding fields to them.
Add plugin_set_key_group() for plugins to dynamically set a
keybinding group (e.g. for the Lua script plugin). Used in Split
Window plugin as an example.
Improve keybinding docs a little.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4115 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-24 11:35:13 +00:00
Lex Trotman
95b90f2c4a
Merged trunk r4110 to build-system
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4111 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-18 23:45:32 +00:00
Nick Treleaven
7f00f825a5
Share GtkAccelGroup for main menu and popup menu.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4106 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-18 14:23:49 +00:00
Nick Treleaven
b5e8d97a71
Fix updating main menu accelerators after changing keybindings
...
(thanks to Lex Trotman).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4105 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-18 13:57:07 +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
Lex Trotman
081e9e768f
Merged trunk to build-system
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4101 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-17 04:27:07 +00:00
Enrico Tröger
c0c44bea49
Switching notebook tabs now works for the currently used notebook widget instead of always using the documents notebook.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4062 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-09 11:17:00 +00:00
Nick Treleaven
b1eb01bc0b
Rename 'Reflow lines/paragraph' to 'Reflow lines/block' because in
...
future using an indent block is more useful e.g. for ChangeLog
files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4044 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-30 10:52:04 +00:00
Lex Trotman
8a4b302d7f
Make build API symbols prefixed GEANY_
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4043 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-30 02:04:08 +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
c68bb5a368
Explain parameters for keybindings_set_item().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4028 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-27 11:06:50 +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
Lex Trotman
28d96a3909
Merge with trunk
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@4020 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-24 00:59:12 +00:00
Nick Treleaven
4a61fd4620
Fix GLib warning when pressing a key with no documents open.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4017 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-23 17:11:31 +00:00
Nick Treleaven
1581d275e0
Fix GLib warning when using build keybindings and there's no current document.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4013 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-23 14:39:03 +00:00