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
875d5b214f
Fix wrong placement of long line marker ( closes #1889392 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2239 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-08 11:22:36 +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
be322a8703
Show line wrap symbol at start of line for wrapped lines.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2010 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-02 16:57:51 +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
719c2131cf
Fix wrong brace formatting.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1819 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-24 11:31:27 +00:00
Nick Treleaven
25e596bf0d
Add allocation for NULL-terminated selection ends.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1765 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-30 10:40:09 +00:00
Enrico Tröger
bc2c3fddf1
Experimental change of scrolling to get horizontal scrolling working.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1691 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-11 17:05:13 +00:00
Enrico Tröger
541bd309a6
Change signature of sci_replace_sel() to take a const gchar*.
...
Move code to insert a colour to document.c
Let the code also work on Windows (untested).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1649 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-27 19:36:43 +00:00
Nick Treleaven
05cbc77bab
Rename some menubar widget names.
...
Use indentation spelling in variable names.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1611 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-12 15:16:17 +00:00
Enrico Tröger
1746b6e66c
Added sci_get_line_indentation() and sci_set_line_indentation().
...
Fixed broken increase/decrease indentation when using only spaces for indentation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1514 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-08 16:03:07 +00:00
Enrico Tröger
c84d9b2803
Added options to show or hide the statusbar as well as the editor scrollbars.
...
Added sci_set_scrollbar_mode() to easily show or hide the scrollbars.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1444 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-10 17:06:57 +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
Nick Treleaven
3293150f92
Add Goto Previous/Next Marker keybindings (Ctrl-, and Ctrl-.).
...
Make sci_marker_next() and sci_marker_previous() return marker line
number.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1397 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-15 12:52:16 +00:00
Enrico Tröger
a611a040da
Added sci_get_selection_mode(), sci_set_selection_mode(), sci_get_pos_at_line_sel_start(), sci_get_pos_at_line_sel_end().
...
Improved replacing in rectangle selections (closes #1665571 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1352 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 17:36:51 +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
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
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
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
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
Nick Treleaven
9bb937706c
Improve accuracy of sci_scroll_to_line() when line wrapping and/or
...
folding is used.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1145 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-24 12:32:52 +00:00
Nick Treleaven
779e1bca1f
Scroll cursor to 50% of the view when reloading a file.
...
Rename sci_goto_pos() argument 'unfold'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1120 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 15:58:00 +00:00
Enrico Tröger
7dda3569ee
Added option to toggle usage of Tab button for indentation.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1087 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-12 21:52:48 +00:00
Enrico Tröger
d14742366c
Fixed broken overtype update in the statusbar.
...
Removed unused field do_overwrite in document struct.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1067 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-08 15:30:44 +00:00
Nick Treleaven
e321c8e045
Added sci_get_first_visible_line().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1011 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-18 15:43:28 +00:00
Nick Treleaven
7b1ca9594f
Scroll matching selection to 1/3 of the view when searching.
...
Add sci_scroll_to_line(); remove sci_goto_line_scroll().
Show 'not found' message on status bar also when enter is pressed in
the search bar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@964 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-03 15:09:13 +00:00
Nick Treleaven
4d42dbbe52
Fix setting document unchanged state when using Undo/Redo for
...
encoding or BOM changes.
Add sci_is_modified().
Added useful doc() function used only when debugging.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@922 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-24 13:41:34 +00:00
Nick Treleaven
56ac6ddc17
Added sci_get_last_child(), sci_get_fold_parent().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@887 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-12 16:24:34 +00:00
Enrico Tröger
c4cbce1584
Added keyboard shortcut Ctrl+< to jump between matching braces( closes #1571283 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@884 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-11 22:01:26 +00:00
Nick Treleaven
464e9b7d0b
Change sci_get_line to return a NULL terminated string.
...
Fix memory leak and possible invalid read in sci_cb_auto_latex().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@861 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-02 15:22:29 +00:00
Nick Treleaven
bada0d1705
Prevent a partial selection on a line being deleted when using
...
CTRL-I to indent; also improve CTRL-Shift-I unindenting. Closes
#1557963 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@829 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-21 10:31:06 +00:00
Enrico Tröger
e1373a47fc
Added sanity check.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@795 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 17:47:00 +00:00
Nick Treleaven
0bd427bd05
Remove filetypes.h and Scintilla includes from geany.h; Add VALID_DOC_IDX macro
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 20:39:59 +00:00
Enrico Tröger
e87b87b015
Added colour values for indentation guides and white space.
...
Made hard coded SCI_AUTOCSETMAXHEIGHT changeable and added an option in the preferences dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@712 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-13 15:04:30 +00:00
Enrico Tröger
2a30d0abe3
Added some menu items to the edit menu for editing tasks.
...
Added keyboard shortcuts for increase/decrease of line indentation (closes #1521717 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@656 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-01 10:35:32 +00:00
Enrico Tröger
31c17438cb
Removed unused colour parsing functions.
...
Let the colour chooser pick the colour under the cursor.
Fixed bug in parsing strings containing hex values, modified the styles to keep the syntax highlighting consistent.
Removed startup warning.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-27 20:57:13 +00:00
Nick Treleaven
5f05ba684a
Fix replacing the right length of text matched from a regex; Add support for back references when replacing with regex; Improve the speed of replace all/replace in selection; Don't lose the selection range after replacing in selection
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@581 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-18 14:09:01 +00:00
Nick Treleaven
7c3ff94fc7
Make sci_goto_line_scroll work better with line wrapping and folding
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@534 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-05 12:37:46 +00:00
Nick Treleaven
60b7f681d7
Scroll to 1/4 of visible lines when going to a line number.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@531 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-03 12:58:58 +00:00
Enrico Tröger
7c9d6df76e
Improved settings for the long line marker, it can now be easily disabled or set to highlight the background of too long lines.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@511 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-30 14:28:32 +00:00
Enrico Tröger
22ab86a40b
Added "Select All" menu item.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@510 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-30 13:42:53 +00:00
Nick Treleaven
0c9a5af71e
Made Duplicate Line command duplicate selection if present
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@453 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-17 15:39:47 +00:00
Enrico Tröger
73384bb248
Implemented code for setting indicators while compiling.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@442 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-13 19:37:21 +00:00
Nick Treleaven
e62ba3d4c0
Use the character position under the mouse click for Go to definition/declaration and for overridden middle click text paste
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@420 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-07 19:25:20 +00:00
Nick Treleaven
e5f238c232
Scroll session files in view after all resizing of the Scintilla widget and rename sci_scroll_to_line
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@379 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-30 18:03:19 +00:00
Enrico Tröger
eedfacefe8
fixed warnings
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@276 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-04-27 17:59:12 +00:00