178 Commits

Author SHA1 Message Date
Enrico Tröger
7f669ded1f Allow Ctrl-A (or whatever "Select All" has been set to) to select all text in the scribble text widget (closes #1952335).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2536 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-27 15:43:47 +00:00
Enrico Tröger
5833e8892c Fix too small dialog window when showing the keyboard shortcuts dialog from the help menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2442 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-03 15:38:16 +00:00
Enrico Tröger
a0a882e06c Fix missing menu accelerators for default keybindings on startup.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2441 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-03 15:12:54 +00:00
Nick Treleaven
d8bca75e41 Check file on disk for changes (with timeout) when pressing a key.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2424 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-27 17:16:53 +00:00
Enrico Tröger
1cf46e4c8e Add shortcut to switch to the sidebar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2390 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-23 16:32:36 +00:00
Nick Treleaven
664ee2f75d Make KeyBinding name and label fields non-const strings so they can
be freed by any plugins that need to use malloc'd strings.
Document KeyCallback typedef.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2345 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-14 17:23:24 +00:00
Nick Treleaven
95fa43f302 Set main menu accelerators for keybindings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2342 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-14 13:11:46 +00:00
Nick Treleaven
4472929989 Check plugin keybinding group name is valid.
Ignore plugin keybinding groups with no elements defined.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2339 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-13 17:12:18 +00:00
Nick Treleaven
7893d465e2 Fix bug with keybindings using check_current_word().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2327 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-12 18:01:15 +00:00
Nick Treleaven
2c0316a296 Merge plugin-keybindings branch:
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.
Rename keybindings_cmd() to keybindings_send_command(), which now
takes a group_id argument.
Add keybindings_lookup_item().
Add documentation for keybindings structs.
Add support for plugin keybindings using the PLUGIN_KEY_GROUP()
macro.
Add a plugin keybinding for 'Insert Special HTML Characters'.
Rename KBCallback, cmd_id, cb_func with clearer names.
Add KeyBinding::menu_item field for setting accelerators (currently
does nothing).
Load keybindings keyfile after plugins have loaded at startup, so
their shortcuts are also loaded. Still to do: loading individual
plugin keybindings after startup.
Group most keybinding callbacks together according to keybinding
group.
Add keybindings_set_item() and add it to the plugin API.
Set main menu widget accels with keybindings_set_item() - they are
ignored for now. Popup menu accels are set separately.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2324 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-12 17:07:43 +00:00
Nick Treleaven
2c19fe8e14 Break down Edit, Editing, Tags, Other keybinding groups into Editor,
Clipboard, Select, Format, Insert groups and rename GEANY_KEYS_*
accordingly.
Group most keybinding callbacks together according to keybinding
group.
Add underscore for GEANY_KEYGROUP_*.
Set main menu widget with keybindings_set_item() - this is still
ignored for now. Popup menu accels are set separately.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-12 13:37:39 +00:00
Nick Treleaven
83f7b5770d Move snippet completion keybindings into Editing group.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2322 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-10 17:30:27 +00:00
Nick Treleaven
e57535bb8d Load keybindings keyfile after plugins have loaded at startup, so
their shortcuts are also loaded. Still to do: loading individual
plugin keybindings after startup.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/plugin-keybindings@2321 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-10 13:54:47 +00:00
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