188 Commits

Author SHA1 Message Date
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
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