165 Commits

Author SHA1 Message Date
Nick Treleaven
824a05083f Make keybindings_send_command() take guint parameters, not gint.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2319 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-10 13:29:35 +00:00
Nick Treleaven
5f43e01f17 Add keybindings_set_item() to the plugin API and update the HTML
Characters plugin.
Rename KBCallback, cmd_id, cb_func with clearer names.
Add KeyBinding::menu_item field for setting accelerators (currently
does nothing).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2318 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-10 13:23:57 +00:00
Nick Treleaven
747d2d2bf4 Add support for plugin keybindings using the PLUGIN_KEY_GROUP()
macro. Note: plugin keybindings are not yet loaded from the keyfile.
Add a plugin keybinding for 'Insert Special HTML Characters'.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2315 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-07 18:00:22 +00:00
Nick Treleaven
5e952cc76c Allow plugins to use keybindings_lookup_item().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2314 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-07 17:24:36 +00:00
Nick Treleaven
84bd7aed39 Re-enable setting menu accelerators.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2305 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-04 16:11:59 +00:00
Nick Treleaven
b96dd4171a Re-enable Keyboard Shortcuts dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2303 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-03 17:54:59 +00:00
Nick Treleaven
15ceaea0cf Re-enable snippets completion.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2302 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-03 17:35:32 +00:00
Nick Treleaven
8b0842560b Re-enable focus commands in the VTE.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2301 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-03 17:28:15 +00:00
Nick Treleaven
ee26ac9254 Change keybindings code to use keybinding groups, each with a
separate enum set, which will make the plugin ABI more stable,
and lay the groundwork for plugin keybindings support.
Note: this breaks the plugin API.
Disable setting menu accelerators (temporary).
Disable Keyboard Shortcuts dialog (temporary).
Disable snippets completion (temporary).
Disable focus commands in the VTE (temporary).
Make Tags group use separate cb_func_tags callback.
Rename keybindings_cmd() to keybindings_send_command().
Add keybindings_lookup_item().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2297 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-29 19:30:28 +00:00
Enrico Tröger
39adac3e1b Fix ignoring of some keybindings when caps lock is active (introduced in r2253).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2288 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-27 14:21:34 +00:00
Enrico Tröger
b7bfb2743a Replace all C++-style comments with usual C-like multi-line comments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2287 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-27 13:17:29 +00:00
Nick Treleaven
d4c06b714d Don't scroll the editor view if it is unnecessary when using Go to
Marker or Go to Matching Brace commands.
Make sci_set_current_line() not scroll the view, unlike
sci_goto_line().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2275 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-22 17:29:45 +00:00
Enrico Tröger
85f73129c0 Apply patch from Daniel Richard G. to fix to fix several compiler warnings, C89 violations and minor code problems (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2267 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-20 11:24:23 +00:00
Enrico Tröger
8d940e7f5f Fix checking wrong variable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2256 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-13 16:08:47 +00:00
Enrico Tröger
6532339f1a Use a modifiers mask to ignore unwanted modifiers(caps lock, num lock) when handling key presses (maybe fixes #1891276).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2253 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-12 15:49:54 +00:00
Nick Treleaven
fb167ce4dc Rename binding type KeyBinding.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2198 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-29 16:11:18 +00:00
Nick Treleaven
0daae73665 Add comment to remind me not to use GTK_WIDGET_IS_SENSITIVE for menu items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2157 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-10 13:41:58 +00:00
Nick Treleaven
afe981214a Hopefully fix bug with Cut/Copy/Paste KB not working (#1867861).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2156 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-10 13:27:26 +00:00
Enrico Tröger
e3201062c6 Update copyright information and change format of email addresses in source files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2150 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-06 18:11:57 +00:00
Nick Treleaven
bd6c2c611f Add configurable keybindings for Cut, Copy and Paste.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2130 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-25 14:00:18 +00:00
Enrico Tröger
48847cb372 Fix inverted move tab first/last commands.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2126 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-23 15:19:42 +00:00
Nick Treleaven
9a236fc554 Don't flicker menubar when typing Shift-[a-z] in the VTE.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2108 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-18 13:35:51 +00:00
Enrico Tröger
47c7c69214 Add Move document first/last keybindings (patch by Catalin Marinas, thank you).
Add toolbar items to increase/decrease indentation (closes #1850697).	     


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2104 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-16 16:54:47 +00:00
Enrico Tröger
d7ceffc129 Fix compiler warning on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2077 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-29 18:21:12 +00:00
Enrico Tröger
4b43e762d0 Rename "Contruct autocompletion" to "Snippets".
Allow changing height of the symbol completion list even if automatic symbol is disabled, it still can be forced by keybinding.	 


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2044 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-12 09:27:43 +00:00
Nick Treleaven
d1d24b30c5 Allow VTE to interpret F-keys (except if they're focus commands).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2039 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-08 16:58:20 +00:00
Nick Treleaven
a4abd28278 Set Ctrl-Alt-P as default Prefs KB.
Change Decrease Indent default KB to Ctrl-U (very common action,
and Ctrl-U was unused).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2038 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-08 16:39:34 +00:00
Nick Treleaven
f1e323f158 Make VTE interpret all keyboard shortcuts except for focus group
keybindings.
Add enum values for keybinding groups.
Make Notebook tabs keybindings group.
Move Go to tags items into Tags keybindings group.
Move navigation items into a new Other keybindings group.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2027 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-06 16:59:01 +00:00
Nick Treleaven
a2589f87fa Add Indent Type option in the Document menu.
Add 'Detect from file' Editor indentation pref.
Show TAB or SP for current document's indent type.
Minor editing of Document menu and editor Indentation prefs group.
Use GString for statusbar statistics.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1953 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-17 12:27:07 +00:00
Nick Treleaven
d34892629d Fix inserting spaces instead of tab when using 'Suppress construct
completion' and spaces are used for indentation.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1933 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-09 11:49:42 +00:00
Enrico Tröger
2eaa1d8dcf Fix wrong insert position of Insert Date function when using keyboard shortcut and place the cursor behind the inserted date.
Enable horizontal scrollbar for the Open Files list.       


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1932 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-08 12:10:03 +00:00
Nick Treleaven
5b6b03c058 Move and rename the bash shortcuts hidden preference - it's now in
geany.conf, [VTE] section, called 'enable_bash_keys'.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1927 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-02 16:20:44 +00:00
Nick Treleaven
0cfa26f513 Add Project Properties menu accelerator.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1919 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-28 16:32:28 +00:00
Nick Treleaven
0dd090e65e Also ignore Ctrl-L for VTE bash command.
Allow 'Switch to editor' command to override any bash commands.
Also disable the popup menu to avoid VTE bash conflicts.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1916 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-28 10:54:56 +00:00
Nick Treleaven
14e661f9fd Add enable_vte_bash_keys keybindings.conf hidden pref in [Settings].
Refactor keybindings_init().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1911 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-27 11:13:59 +00:00
Nick Treleaven
05a8bf08a2 Make common bash Ctrl-[a-z] keyboard shortcuts work in the VTE.
(Not sure why Ctrl-Shift-[cv] copy/paste shortcuts still don't work).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1908 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-26 16:22:20 +00:00
Nick Treleaven
bcbe878024 Fix selecting text with Shift-{PageUp,PageDown} (closes #1801315).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1906 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-26 11:14:53 +00:00
Nick Treleaven
8d193436de Remove pos argument from sci_get_current_line(), because
sci_get_line_from_position() can be used instead and it's clearer.
Remove unused sci_get_line_end_styled() - it's also the same as
sci_get_line_from_position().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1904 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-25 16:44:33 +00:00
Nick Treleaven
852a4dbb50 Fix bug when using Navigate backwards after using the keyboard to
set the cursor position on the current word.
Add symbols_goto_tag().
Replace navqueue_append() with navqueue_goto_line().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1900 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-25 12:39:41 +00:00
Nick Treleaven
6b3b7fe55a Add msgwin_switch_tab(), msgwin_clear_tab() functions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1899 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-24 16:07:44 +00:00
Nick Treleaven
5282ddbeb2 Fix bug with 'Delete lines' when cursor is at the start of a
multi-line selection.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1898 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-24 11:25:41 +00:00
Nick Treleaven
1c68618e6a Undo r1891 so that 'Delete lines' again includes the cursor line
even when at the start of a line - like Cut/Copy lines do.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1894 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-22 11:11:24 +00:00
Nick Treleaven
6e90725f5d Make 'Duplicate lines' work for whole lines when more than one line
has a selection.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1892 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-21 16:39:21 +00:00
Nick Treleaven
1b915dbef6 Make some keybinding titles use existing string capitalization.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1882 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-13 16:45:46 +00:00
Nick Treleaven
122dd396f3 Add Find keybinding (re-uses existing string).
Group search-related callbacks together.
Docs: Add table headings to group related keybindings together.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1881 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-13 16:40:19 +00:00
Nick Treleaven
07d6f819ca Change scroll by line default keybindings to Alt-{Up, Down}.
Change Previous/Next Paragraph Scintilla commands to Ctrl-{Up, Down}.
Adding Shift extends selection by paragraph.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1880 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-13 12:38:14 +00:00
Enrico Tröger
d390522727 Remove convert to lower-/upper-case keybindings.
Add toggle case keybinding and change shortcut to Ctrl-Alt-U.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1860 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-07 19:01:55 +00:00
Nick Treleaven
acfedc1771 Add 'Move document left' and 'Move document right' keybindings.
Make fixed keybindings overridable.
Add fixed keybindings for switching to leftmost/rightmost document,
Ctrl-Shift-{PageUp,PageDown}.
Docs: Add 'Switching documents' keybindings section.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1857 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-07 12:34:57 +00:00
Enrico Tröger
7111acdc06 Make keybinding for scrolling by one line changeable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1854 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-05 18:55:51 +00:00
Nick Treleaven
29b47c239c Minor edit of keyboard shortcuts dialog text.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1851 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-04 15:39:17 +00:00