121 Commits

Author SHA1 Message Date
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
Nick Treleaven
1887a20df4 Add text argument for document_new_file(), so that it's independent
from filetype templates.
Make File->New create a blank document, rather than using the None
filetype template.
Add None option for the 'New with Template' menu commands.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1848 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-03 16:09:53 +00:00
Nick Treleaven
cb333602fd Set copy lines default KB to Ctrl-Shift-C.
Set cut lines default KB to Ctrl-Shift-X.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1847 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-03 12:17:58 +00:00
Nick Treleaven
641ca8e516 Fix Ctrl-Shift bindings not working when caps lock is on.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1842 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-30 14:07:49 +00:00
Nick Treleaven
34d587f5d8 Rename non-menu keybinding titles, e.g. Tags menu -> Tags commands.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1841 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-30 10:33:09 +00:00
Nick Treleaven
b73d1f2133 Change 'Goto' to 'Go to' everywhere.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1839 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-30 10:04:39 +00:00
Enrico Tröger
501c01aeb4 Remove useless callback wrapper function.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1832 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-28 10:50:18 +00:00
Nick Treleaven
ef1399e000 Rename MyApp -> GeanyApp.
Move most GeanyApp fields into:
GeanyPrefs for (most) Preferences dialog fields;
UIPrefs for non-Prefs dialog visual settings;
UIWidgets for less commonly used widgets such as menuitems and
dialogs;
GeanyStatus for various states the application can be in.
Move some GeanyApp fields into EditorPrefs (and one into each of
CommandLineOptions and SidebarTreeviews).
Add plugin API prefs field.
Move disabling build widgets on Windows to build_init().
Make build callbacks static.
Add treeviews_init() to prepare popup menus and open files treeview.
Replace treeviews_find_node() with treeviews_select_openfiles_item().
Make utils_isbrace() and utils_is_opening_brace() take an
'include_angles' argument (to separate from editor_prefs).
Make 'Goto matching brace' keybinding include <> angle brackets.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1815 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-23 11:34:06 +00:00
Nick Treleaven
9f46d083c5 Move #define PLAT_GTK to geany.h.
Move filetype typedef to geany.h.
Don't #include any src/*.h files from headers.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1800 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-15 15:37:21 +00:00
Nick Treleaven
47935f3b6d Make 'Delete current line' and 'Select current line' work for all
lines that have a selection.
Implement 'Copy current line'.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1782 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-10 11:29:37 +00:00
Nick Treleaven
86ebab2152 Prevent warning when trying to focus non-existent VTE.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1780 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-09 16:18:02 +00:00
Enrico Tröger
628331a85b Rename editor_auto_forif() in editor_auto_complete().
Allow using auto completion in PHP files outside of the PHP tags, generally in comments, for news files without filetype and on non-empty lines.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1754 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-28 10:27:42 +00:00
Nick Treleaven
2e500fb403 Use AE spelling of 'color'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1753 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-27 11:56:50 +00:00
Nick Treleaven
109a7aee67 Convert 'Insert Special HTML Characters' tool into a plugin;
keybinding support will be added later.
Add plugin functions for inserting text into the current document.
Add plugin support for disabling a menu item when no documents are
open.
Destroy plugin_fields->menu_item on unloading if set by a plugin.
Use G_MODULE_BIND_LOCAL for plugins to prevent symbol shadowing by
other modules, and to help detect unresolved symbols at loading time.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1734 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-23 15:41:08 +00:00
Nick Treleaven
fc9e92cf0f Make pressing escape focus the editor when using incremental search
or the Goto Line entries.
Add keybindings_cmd() to mimic a keybinding action.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1723 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-18 15:35:52 +00:00
Enrico Tröger
34a760d549 Add keybinding for scroll to current line.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1719 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-17 16:27:49 +00:00
Enrico Tröger
3bcd10b0d8 Add keybindings for smart indent and indent/deindent by one space.
Fix possible selection errors on commenting multiple lines when using CR/LF line endings.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1705 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-16 15:42:12 +00:00
Nick Treleaven
8fe0974d8a Capitalize some dialog titles.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1694 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-12 11:59:13 +00:00
Enrico Tröger
6146162d5f Fix wrong default value (thanks John).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1685 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-09 15:35:25 +00:00
Enrico Tröger
a63323142c Use Ctrl-B for Goto matching brace.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1683 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-09 13:53:27 +00:00
Enrico Tröger
fe74823881 Use a TreeView for keybinding list in the preferences dialog and add descriptive sections for better usability.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1682 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-09 13:48:41 +00:00
Enrico Tröger
7a18268a19 Change default shortcut for Find Next/Previous to Ctrl-G and Ctrl-Shift-G.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1675 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-07 15:24:17 +00:00
Enrico Tröger
7b99a9f325 Add keybinding for Select, Transpose, Cut, Copy and Delete line.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1674 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-07 15:12:13 +00:00
Enrico Tröger
a707774d52 Add keybinding for select current paragraph.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1669 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-06 10:16:51 +00:00
Enrico Tröger
1db1865319 Change comment toggle shortcut to Ctrl-E, undefine shortcuts for comment/uncomment.
Improve some selection issues when using comment/uncomment.
Improve comment toggling by adding an additional character to mark.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1668 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-05 18:19:56 +00:00
Enrico Tröger
f90fc4f005 Change Help shortcut to F1, use Ctrl-H for Replace.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1662 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-04 14:41:58 +00:00
Enrico Tröger
a42f1f93c5 Add keybindings for forward/back code navigation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1593 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-03 16:03:46 +00:00
Nick Treleaven
4193196248 Move MyApp::pref_editor_* to editor.h, using editor_prefs struct.
Move INDENT_* enums to editor.h.
Move utils_get_whitespace() to editor.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1587 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-29 16:30:54 +00:00
Nick Treleaven
fdaa689bff Rename sci_cb.[hc] editor.[hc].
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1584 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-28 16:07:30 +00:00
Enrico Tröger
b5f8992a5d Added many widget names to different dialogs for use with custom styles. Menu items still don't work.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1535 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-15 15:16:16 +00:00
Enrico Tröger
5b01f262e3 Added menu item to hide or show all additional widgets and renamed keybinding to menu_toggleall.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1511 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-06 14:49:51 +00:00
Nick Treleaven
ad56cd59de Make marker and matching brace keybindings global.
(Also indent some case statement bodies).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1507 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-05 16:35:59 +00:00
Enrico Tröger
0514bba3d3 Added keybinding to show and hide all additional widgets(statusbar, toolbar, sidebar and messages window).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1505 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-04 16:59:00 +00:00
Nick Treleaven
2acfbdf2d6 Merge file menu keybinding callbacks into cb_func_file_action().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1502 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-03 16:13:30 +00:00
Nick Treleaven
dc47b38ee0 Add keybinding to show project properties dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1501 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-03 15:38:02 +00:00
Enrico Tröger
398ddf6d73 Added context actions to run custom commands on current selection or the current word below cursor.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1453 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-15 18:09:59 +00:00
Nick Treleaven
4e13a55645 Only construct-complete when the editor widget has focus.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1438 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-05 11:53:52 +00:00
Enrico Tröger
e123af1c55 Fixed warning about shadowing a local variable.
Add keybinding for switching to the search bar (as suggested by Nikolas Arend).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1430 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-30 10:38:13 +00:00
Nick Treleaven
7dc7e55951 Add headings for the Keyboard Shortcuts dialog to group related
commands.
Shorten the 'Send to custom command' labels slightly.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1429 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-29 14:39:04 +00:00
Nick Treleaven
a52574c582 Add keybinding for construct completion, and set the default to tab.
Separate complete_constructs() code from sci_cb_auto_forif().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1426 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-27 15:48:16 +00:00
Nick Treleaven
e7e2c6056e Change comment/uncomment keybinding to Ctrl-G/Ctrl-Shift-G.
Change duplicate KB to Ctrl-D (Scintilla default).
Change goto line KB to Ctrl-J (so Ctrl-L line cut Sci KB works).
Remove default goto matching brace KB (doesn't work on all
keyboards).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1423 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-26 12:13:04 +00:00
Enrico Tröger
b187533760 Use Ctrl+Shift+Space always for showing calltips because Alt+Space is used often by window managers (not only under Windows).
Added keybinding for inserting alternative whitespace characters.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1422 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-25 20:51:45 +00:00
Nick Treleaven
a581744a05 Ignore Caps Lock in keybindings_got_event() (could cause problems
with e.g. Shift-F9).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1420 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-24 16:10:20 +00:00
Nick Treleaven
b05c0a7f0e Rename dialogs_show_prefs_dialog() to prefs_show_dialog().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1416 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-23 16:47:27 +00:00
Nick Treleaven
7ae070145b Move dialogs_show_keyboard_shortcuts() to keybindings.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1415 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-23 16:34:54 +00:00