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
Lex Trotman
9164392983
Merge with trunk
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3983 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-17 04:55:35 +00:00
Nick Treleaven
a6a847f4e7
Don't use g_alloca() with selected text, it may be too long.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3950 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-10 15:42:22 +00:00
Nick Treleaven
8c7f40f3f9
Add 'Mark All' keybinding.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3949 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-10 15:17:27 +00:00
Lex Trotman
1726e57092
Configurable Build Menu Alpha
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/build-system@3941 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-09 06:49:42 +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
2364b504fe
Improve MRU document switching so there are no duplicates in the
...
list and documents switched to whilst the dialog is open are
ignored. Also beep when cycling through to the first document in the
list.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3811 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-22 14:50:34 +00:00
Nick Treleaven
9af053536a
Implement Most-Recently-Used document switching when pressing
...
Ctrl-Tab keybinding. (It's probably not perfect, but works OK).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3792 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-13 15:37:28 +00:00
Enrico Tröger
e26052485c
Manually show the main notebook tab bar menu when Shift-F10 is pressed. This broke when we disabled the default GTK tab bar menu.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3728 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-24 19:28:55 +00:00
Enrico Tröger
6ae141fac0
Replace our own GEANY_KEYS_MODIFIER_MASK by gtk_accelerator_get_default_mod_mask() which gives the same result.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3715 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:51:53 +00:00
Enrico Tröger
a95a59a42f
Remove all G_LIKELY macros inside g_return_if_fail() statements as this is redundant.
...
Remove many other G_LIKELY/G_UNLIKELY macros which doesn't make much sense to keep the code more readable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3708 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-15 22:47:33 +00:00
Enrico Tröger
a9dc990049
Start using G_LIKELY/G_UNLIKELY macros to gain a little more performance when building the code with gcc.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3687 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 21:07:40 +00:00
Enrico Tröger
093c7cff7f
Don't manage the last used documents list when quitting to prevent errors by accessing invalid memory (may close #2533990 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3656 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-26 20:31:55 +00:00
Enrico Tröger
59079283f2
Add 'Send Selection to Terminal' command to the Edit->Format menu (initial patch by David Gleich, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3601 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-25 23:28:01 +00:00