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
Enrico Tröger
bfbc2b6f73
Special case Menu key presses and Shift-F10 to show the popup menu of the widgets where they were pressed instead of always the document notebook tab list.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3550 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-05 19:10:57 +00:00
Enrico Tröger
af23973dcd
Break a few too long lines.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3510 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-26 18:21:53 +00:00
Enrico Tröger
8c5c5bb27c
Reorder some keybindings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3483 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 18:19:09 +00:00
Enrico Tröger
bd2d677d84
Support multiple %cursor% wildcards in Snippets. To switch between %cursor% wildcards, use the new keybinding 'Move cursor in snippet' (patch by Thomas Martitz, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3461 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 21:05:03 +00:00
Enrico Tröger
c636728975
Fix several compiler warnings and build errors (patch by Daniel Richard G., thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3460 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 18:29:39 +00:00
Enrico Tröger
39a6eb455e
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +00:00
Nick Treleaven
9962e8abb8
Fix not switching to 2nd last used document when the last used
...
document has been closed (#1945162 ).
- Code changes:
Move geany_object extern to geany.h.
Remove CallbacksData struct.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3438 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-03 12:54:13 +00:00
Nick Treleaven
4428e31d93
Group some View callbacks together.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3437 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-02 14:01:24 +00:00
Nick Treleaven
943f07d07a
Add dialog for switching to last used tab, which disappears when
...
releasing the modifier key. (Useful once MRU switching is
implemented).
Connect window key-press-event in keybindings.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3436 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-02 13:37:40 +00:00
Nick Treleaven
0709fcf00f
Allow Find Usage for selections even when the cursor is not at a
...
word character.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3407 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-19 17:15:52 +00:00
Enrico Tröger
9e25c43487
Move implementation of lookup_widget() into ui_lookup_widget().
...
Change uses of lookup_widget() to ui_lookup_widget().
Remove now unneeded support.c.
Use GLib gettext macros in support.h instead of own ones.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3402 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-18 21:21:53 +00:00
Enrico Tröger
ae9e166786
Remove on_go_to_line1_activate() and directly use on_go_to_line_activate() instead.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3334 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 17:48:36 +00:00
Enrico Tröger
8ed9710f48
Rewrite of the whole toolbar code. Now it is based on GtkActions and all elements can be added/removed/reordered using a simple XML file.
...
Add GeanyMenubuttonAction and GeanyEntryAction as GtkAction subclasses to have menu buttons and text entries in the toolbar.
Change the Goto line toolbar item back to a plain text entry again.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3328 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 11:10:06 +00:00
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
a23e534086
Update the Document menu when Line Breaking/Wrapping were toggled by a keybinding.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3273 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-23 16:24:16 +00:00
Enrico Tröger
8f35c2925c
Make keyboard shortcuts dialog using a treeview to display the shortcuts to make it scrollable with the keyboard.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3110 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-17 16:51:22 +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
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
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