61 Commits

Author SHA1 Message Date
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
Enrico Tröger
bb63808621 Fixed broken autocompletion for filetype PHP.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@838 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-27 12:48:13 +00:00
Enrico Tröger
c20171288d Enabled socket code on Windows.
Re-enabled the gtk_window_present() call for Windows to pop up the main window.
Enabled notification if file on disk has changed under Windows, it seems to work (closes #1557689).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@835 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-26 16:29:44 +00:00
Enrico Tröger
cd1afef42b Don't start autocompletion in strings and comments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@827 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-20 21:52:35 +00:00
Nick Treleaven
f180e9a863 Move all static strings from templates.h to templates.c.
Fix sign comparison warning.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@819 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-17 19:58:04 +00:00
Enrico Tröger
aff687fd33 Added comment toggle functionality to easily comment and uncomment a line with one shortcut (default Ctrl+B) (closes #1552184).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@808 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-10 11:47:26 +00:00
Enrico Tröger
116728caae Added own implementation of an Undo stack (not yet working).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@793 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 16:09:08 +00:00
Nick Treleaven
a63fc1e40e Moved UI related utils from utils.c to ui_utils.c
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@790 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 14:24:47 +00:00
Nick Treleaven
dff3122273 Move current_word and clickpos to editor_info struct in sci_cb.c.
Move on_editor_button_press_event to sci_cb.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@789 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-04 15:57:46 +00:00
Nick Treleaven
4c33cc29a1 Fixed C89 variable declaration and two sign comparison warnings
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@780 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-02 20:30:35 +00:00
Enrico Tröger
b1b4a4e157 Split filetype PHP/HTML into PHP and HTML.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@779 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-01 17:07:49 +00:00
Enrico Tröger
2b3dad1e35 Added auto completion for LaTeX command "begin".
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@772 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-29 16:11:55 +00:00
Enrico Tröger
e6e2f9020b Stop immediately (un)commenting when the comment open string is empty.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@762 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-24 17:58:04 +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
d79e82f633 Moved prototype for geany_debug() to main.h.
Moved declaration of document struct to document.h.
Keep selection when commenting and uncommenting code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@750 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 15:47:18 +00:00
Enrico Tröger
3d4aea448b Comment already commented lines, too (re-closes #1521714).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@745 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-19 14:46:04 +00:00
Nick Treleaven
725a2b7de0 Return to showing calltips after successful autocompletion; Use separate functions for html and tag autocompletion
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@727 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-15 21:00:43 +00:00
Enrico Tröger
57f0d45e9c Improved HTML "<table>" auto completion to use the indentation better.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@723 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-15 15:53:18 +00:00
Enrico Tröger
711be1602f Fixed "while" and "switch" autocompletion.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-15 09:01:47 +00:00
Nick Treleaven
dd7441c97c Applied patch from Jens Granseuer to fix build with gcc 2.95 (closes #1539502)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@713 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-14 10:35:57 +00:00
Enrico Tröger
e35efa87b3 Fixed segfault when try to (un)comment some code and no filetype is set(reported by John Gabriele).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@697 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-11 18:16:28 +00:00
Nick Treleaven
d55bc577f7 Use common on_new_line_added for CR or LF added
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@667 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-03 14:08:10 +00:00
Nick Treleaven
c6fa1febba Wrap calltip and prevent it obscuring the current line
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@666 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-03 13:27:30 +00:00
Enrico Tröger
74e1d66c13 Added functionality to uncomment code and added keyboard shortcut Ctrl+Shift+D for this (closes #1521714).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@653 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-31 09:39:33 +00:00
Enrico Tröger
4ec2bd121b Added Unicode BOM detection.
Added "Reload as" menu item to force opening a file with a specified encoding(both were patches from Stefan Oltmanns).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@600 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-22 01:29:10 +00:00
Enrico Tröger
6a9c283cb9 Moved HTML entities from sci_cb.h to data/html_entities.tags.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@571 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-16 22:02:31 +00:00
Enrico Tröger
f21e623e27 Show auto completion list immediately when called by a keybinding.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@562 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-15 12:38:45 +00:00
Enrico Tröger
a1da3923df Added return value and tag name to the calltip.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@550 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-11 17:44:42 +00:00
Enrico Tröger
3539ab4038 Autocompletion only works on blank lines.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@545 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-10 16:02:17 +00:00
Nick Treleaven
58efd38deb Don't include SciLexer.h in geany.h
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@533 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-04 21:31:08 +00:00
Enrico Tröger
805bdf9675 Added function is_opening_brace().
Use is_opening_brace() for better handling of calltips.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@506 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-29 18:22:11 +00:00
Enrico Tröger
3284ca94e3 Fixed a crash when auto completion or call tips are used if no filetype was set. Added some sanity checks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@497 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-27 20:43:04 +00:00
Enrico Tröger
3188cf2d56 Fixed broken auto completion for switch().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@488 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-26 16:17:57 +00:00
Enrico Tröger
01ace30125 Removed URL highlighting code(useless feature, never was enabled).
Set policy settings for the scolledwindow.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@476 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-24 18:43:56 +00:00
Enrico Tröger
3a435bf29e Replaced 'blank' by 'include "..."'. Fixed a bug in utils_brace_match() which prevents correctly matching.
Made auto completion work only for the current filetype (i.e. it hides symbols from other filetypes).
Removed unneeded code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@474 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-24 14:36:35 +00:00
Nick Treleaven
f8c92268f7 Use correct current_word buffer for popup menu item keybindings; also use GEANY_MAX_WORD_LENGTH
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@461 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-18 20:21:19 +00:00
Nick Treleaven
8c510a56df Fix empty white box glitch with tag autocompletion, also improves typing response efficiency
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@414 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-05 22:04:50 +00:00
Enrico Tröger
2d213b1f3e Fixed bug in auto completion of constructs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@399 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-03 15:05:41 +00:00
Nick Treleaven
74b7f7dfbb fix a segfault when commenting out lines with ctrl-d when no filetype is set
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@347 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-20 16:47:07 +00:00
Enrico Tröger
d5fb7376b7 fixed small bug in sci_cb_show_calltip
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@341 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-19 16:52:09 +00:00
Enrico Tröger
a1baf148c0 enabled autocompletion for all filetypes, removed mmap()-code, fixed memory leak
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@336 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-16 19:06:08 +00:00
Enrico Tröger
38fbfedde9 added try-catch-auto completion
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@302 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-05 16:04:15 +00:00
Enrico Tröger
bafe0bb28b fixed small bug when dragging files into Geany
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@295 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-04-30 15:13:13 +00:00
Enrico Tröger
f8af6b4297 bugfixes, several improvements
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@277 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-04-27 18:00:00 +00:00
Enrico Tröger
7f44228903 typing } on lines longer than 256 chars caused a crash
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@254 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-03-17 02:25:39 +00:00
Enrico Tröger
c9e08b8a0c added currently disabled auto completion for LaTeX
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@237 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-03-10 00:49:19 +00:00
Enrico Tröger
6409cf8926 implemented folding
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@227 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-02-26 18:19:28 +00:00
Enrico Tröger
213f368c13 removed some items from the document menu to the preferences dialog, removed file save dialog from interface.c to dialogs.c, added toggle for line numbers, added command line option -p or --no-pipe to ignore a running instance of Geany and force opening a new instance
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-02-14 22:07:55 +00:00
Enrico Tröger
f0e0e31203 improved sci_cb_do_comment() to handle SQL, OMS and Caml comments,
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@180 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-02-10 20:43:30 +00:00
Enrico Tröger
6e2c511e20 (hopefully) fixed a bug with auto indention and CR/LF line endings
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@156 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-01-26 21:33:45 +00:00