154 Commits

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