Enrico Tröger
6e72477338
Fixed missing calltip display when using a space after a symbol name (thanks to Anh Phạm for reporting).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1447 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-13 16:51:48 +00:00
Nick Treleaven
e3aceea275
Show up and down arrows when there are multiple calltip matches.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-13 11:42:25 +00:00
Nick Treleaven
a5b7688694
Only insert a space if construct completion occurs, to prevent unusual undo history.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1440 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-06 10:49:51 +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
473afcc722
Check size of construct completion buffer, remove unneeded static in
...
sci_cb_auto_forif().
Reorder some of sci_cb_close_block().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1428 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-29 11:12:48 +00:00
Nick Treleaven
595626265a
Don't auto-indent {} braces for filetypes that don't use them.
...
Add lexer_has_braces(), do_indent() for in place buffer indentation.
Rewrite some of get_indent().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1427 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-28 12:11:37 +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
62bcccd1ba
Separate on_margin_click(), on_update_ui(), on_char_added()
...
Scintilla notifications.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1425 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-26 15:31:50 +00:00
Nick Treleaven
6daf4d84be
Load HTML-entities when the PHP lexer is first needed, instead of
...
when typing outside of PHP styles.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1424 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-26 12:18:51 +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
8ba7ffe9e6
Fix segfault when pressing ctrl-enter when there are no workspace
...
tags (thanks to R8Rooy for reporting).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1417 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-24 12:10:43 +00:00
Enrico Tröger
94a1b00fe2
Applied patch from Anh Phạm to add a keybinding for selecting the current word under the cursor (thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1413 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-22 15:51:39 +00:00
Nick Treleaven
0a88e35c31
Add Toggle Marker keybinding (Ctrl-M).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1398 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-15 13:14:04 +00:00
Enrico Tröger
9fff34a460
Auto completion of multi line comments is now (again) configurable with the auto complete constructs option.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1377 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 14:06:20 +00:00
Enrico Tröger
90b01daf35
Fixed several compiler warnings (mainly shadowing local variables and unreachable code).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1376 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 13:52:26 +00:00
Nick Treleaven
32c4c8e20b
Fix sign comparison warnings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1374 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 12:18:42 +00:00
Enrico Tröger
9dc61832fc
Added different auto indention modes to select who should Geany indent new lines ( closes #1615605 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1373 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-08 18:02:08 +00:00
Enrico Tröger
fd5288c2e8
Auto complete multi line comments only when auto completion of constructs is enabled.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1336 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-25 17:27:46 +00:00
Nick Treleaven
806dd5be1d
Add descriptions for all .c source files below the file header.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-24 11:41:56 +00:00
Enrico Tröger
3e704eb8be
Made auto_close_bracket() static and auto close brackets only when auto completion of constructs is enabled ( closes #1665015 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1310 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-21 12:11:28 +00:00
Nick Treleaven
9f71329fe8
Rename sci_get_line_end_from_position() with line argument, not
...
position.
Don't autocomplete for/if constructs when editing an existing line.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1292 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-16 16:38:23 +00:00
Nick Treleaven
091c88a952
Remove dead code for gdk_window_scroll warning.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1262 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-08 16:22:23 +00:00
Enrico Tröger
3f360fcdd9
Improved the auto scrolling of documents (actually done by Nick).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1237 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-31 15:53:11 +00:00
Enrico Tröger
8da68b6756
Fixed some scrolling issues with session files and files remotely open via the socket. Added need_scrolling flag to document struct.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1233 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-27 18:45:47 +00:00
Enrico Tröger
f7474a0bc2
Added an option to disable auto completion of known symbols while typing (still can be forced by pressing the keybinding).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1232 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-26 10:43:25 +00:00
Enrico Tröger
8bd2debe4d
Added keybinding and menu entry to open a file which is selected in current tab.
...
Made Insert Special HTML characters insensitive if there are no open tabs.
Removed Zoom items from popup menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1225 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-24 19:20:12 +00:00
Enrico Tröger
74f7a679a8
Updated Scintilla to version 1.72.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1213 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-20 23:54:28 +00:00
Enrico Tröger
1268cbc39b
Enabled auto completion of constructs for filetype JavaScript.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1190 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:51:12 +00:00
Enrico Tröger
7b61ad934d
Updated copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1188 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:36:42 +00:00
Enrico Tröger
2b0740a5fa
Added sci_set_use_tabs().
...
Fixed mem leak in sci_cb_auto_forif().
Moved free_pointers() to utils.c.
Applied patch from Jeff Pohlmeyer to add an option for using spaces or tabulators when inserting some whitespace.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1186 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:09:17 +00:00
Enrico Tröger
b54b45ea42
Applied patch from Jeff Pohlmeyer to add an option for disabling DnD in the editor widget.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1182 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-13 20:50:36 +00:00
Enrico Tröger
f0d4e65311
Added new filetypes Javascript and Lua.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1181 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-13 20:16:09 +00:00
Nick Treleaven
f7b31cac95
Use '::' context separator for C also (so C/C++ share the same
...
syntax, and C++ .h headers use correct syntax).
Add symbols_get_context_separator() and use for calltips and the
symbol list.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1174 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-12 12:33:17 +00:00
Nick Treleaven
ccab52b62d
Fix commenting multiple lines (oops).
...
Set single undo action when toggling multiple lines.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1173 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-11 11:59:40 +00:00
Nick Treleaven
15fb502837
Prevent some possible buffer overflows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1171 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-09 16:53:27 +00:00
Enrico Tröger
b53385de1d
Removed multiline template because it makes not much sense, instead just comment three lines using the general comment functionality.
...
Removed special templates for Pascal and some other filetypes using "#" as comment char. The comment characters for fileheader and GPL templates are now added dynamically according to the current filetype.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1160 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 15:03:53 +00:00
Nick Treleaven
0e75efdd3c
Parse pointers in function return type for C-like files.
...
Show scope in calltips.
Made tm_tag_destroy() static.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1153 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-03 12:41:10 +00:00
Nick Treleaven
1650924026
Add calltip support for D constructors.
...
Add tm_workspace_find_scoped() (adapted from Anjuta 2.02
tm_workspace_find()).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1147 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-26 15:49:35 +00:00
Nick Treleaven
d5e934c3af
Only call SCI_BRACEMATCH once in sci_cb_highlight_braces().
...
Separate find_calltip() from sci_cb_show_calltip().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1144 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-24 12:07:35 +00:00
Nick Treleaven
055f70da67
Force a file changed check when attempting to open an already open
...
file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1119 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 13:04:18 +00:00
Nick Treleaven
7365ae3c9c
Colourise C enum, union and D/Java interface typenames.
...
Add sci_cb_lexer_get_type_keyword_idx() for use when finding if a lexer
supports typename colouring.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1105 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-16 17:18:53 +00:00
Enrico Tröger
627e8f00ca
Moved html_entities array to symbols.c.
...
Fixed some checks for the new D lexer and improved detection of comments when auto completing or showing calltips.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1102 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-15 17:09:05 +00:00
Nick Treleaven
0c2f3d19fc
Fix setting project typenames for the new D lexer.
...
Add sci_cb_lexer_is_c_like() which returns TRUE for C++/D lexers.
Only recolourise C-like files when updating project typename
keywords.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1101 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-15 12:52:52 +00:00
Nick Treleaven
665eec08f1
Only remove extra space indent after a multiline comment if the
...
indent contains one too many spaces.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1099 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-15 11:57:48 +00:00
Nick Treleaven
507d6e0e9c
Fix adding a multiline comment character after pressing enter on the
...
last line of a multiline comment.
Remove multiline comment indent after pressing enter on last line.
Prevent invalid memory reads in auto_multiline().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1096 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-14 15:49:10 +00:00
Enrico Tröger
c051bc4014
Improved auto completion of multi line comments and support /+ +/ for D files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1071 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-08 18:13:22 +00:00
Enrico Tröger
37c230845a
Revert the last change to utils_str_equal() and use it again because g_str_equal() is not NULL-safe.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1059 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-07 16:09:45 +00:00
Enrico Tröger
c461da68f1
Removed utils_str_equal() and use g_str_equal() from GLib because it does exactly the same.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1056 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-06 20:44:32 +00:00
Enrico Tröger
f0044beb30
Don't insert extra indentation in Python files after a colon if the line is a comment.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1055 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-06 15:32:21 +00:00
Enrico Tröger
fb3b2e4f49
Fixed broken auto completion for LaTeX files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1050 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-04 16:09:57 +00:00