401 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
Nick Treleaven
88ff2d5085 Save the build includes and arguments on quitting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@857 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-01 16:14:45 +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
6af166578d Fixed compiler warnings and removed unnecessary signal handler.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@822 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-18 08:19:40 +00:00
Nick Treleaven
b89abc8586 Add ui_frame_new().
Run set includes build dialogs modally, keeping the same filetype.
Updated set includes & arguments dialog layout.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@817 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-15 14:25:42 +00:00
Enrico Tröger
9f5b32cd9a Added menu items for toggle line commentation.
Changed some mnemonics in the "format" submenu.
Added keyboard shortcuts for "Convert Selection to lower-case".


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@814 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-12 08:32:52 +00:00
Enrico Tröger
9d2893c495 Implemented Run command (from the build menu) under Windows, the other commands will follow somewhen.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@811 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-11 11:13:36 +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
Nick Treleaven
6c511f413d Move on_recent_file_activate, dialogs_create_recent_menu,
dialogs_create_build_menu_gen, dialogs_create_build_menu_tex to
ui_utils.c. Also make some functions static.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@807 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-09 14:36:15 +00:00
Nick Treleaven
d3eb239d81 Show parsable errors in red; stderr and compile failure in dark red
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@800 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-08 10:20:15 +00:00
Enrico Tröger
bf5ae49665 Moved the socket code from main.c to socket.c.
Remove an unchanged empty document when loading a new file (closes #1545129).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@798 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-07 15:51:24 +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
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
6ad79f7610 Fixed some typos.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@778 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-01 15:48:56 +00:00
Enrico Tröger
5321e14d3f Change the current working directory within the VTE also when a new file is saved.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@774 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-30 18:53:45 +00:00
Enrico Tröger
f4507528f9 Removed the whole FIFO code and replaced it with support for (Unix Domain) Sockets.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@773 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-30 18:36:17 +00:00
Nick Treleaven
a69bcf2806 Fix quit confirmation message with no files open
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@757 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-22 19:53:11 +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
Nick Treleaven
38bba30628 Moved HAVE_FIFO MyApp fields to fifo_info struct in src/main.c; Prevent unnecessary 'does not look like a filename' debug messages
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@749 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 12:33:09 +00:00
Nick Treleaven
f93babed2f Fix opening more than one file from the command-line (with fifo)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@747 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 11:40:09 +00:00
Nick Treleaven
ac3d928453 Remember the VTE current directory
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@746 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-19 15:07:11 +00:00
Enrico Tröger
312579d70a Added menu items to insert configurable date/time strings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@744 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-19 12:56:30 +00:00
Nick Treleaven
4a1f8ca2d3 Fix a segfault at startup if terminal follow path setting is enabled
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@743 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-19 10:00:21 +00:00
Nick Treleaven
90047be4d7 Use Reload button for reload dialog; Share on_reload_as_activate code for reloading
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@738 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-18 17:24:44 +00:00
Nick Treleaven
6415979cb8 Move signal_cb to main.c
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@728 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-17 14:38:57 +00:00
Enrico Tröger
7d6c540195 Made increase/decrease indentation working with selections.
Keep the old cursor position when working on a single line (do not jump to line start).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@715 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-15 08:51:48 +00:00
Nick Treleaven
7ebb187b26 Store build information instead of using app->cur_idx; Assume C-like warning messages when running make when the current file is a Makefile; Moved some msgwin setup and cleanup code to msgwindow.c; Moved utils_parse_compiler_error_line to msgwindow.c
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-14 15:02:52 +00:00
Enrico Tröger
0dcbacec1f Use utf8/locale encoding wrappers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@711 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-13 09:07:10 +00:00
Nick Treleaven
5d82a9b942 Group search related code
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@699 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-11 21:41:05 +00:00
Nick Treleaven
f75fd1402a Group search related code
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@698 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-11 21:12:49 +00:00
Nick Treleaven
7d8637f549 Fixed all sign comparison warnings
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@684 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-08 13:01:50 +00:00
Enrico Tröger
3df2f233d0 Applied patch to re-enable XIM support. Thanks!
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@681 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-07 15:05:21 +00:00
Nick Treleaven
795fc85083 Move recent file item to the top when it is clicked on
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@680 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-07 14:53:58 +00:00
Nick Treleaven
92a3f0a4b8 Place the cursor in "" for insert blank include
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@679 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-07 11:11:05 +00:00
Nick Treleaven
d39510f44d Allow Find even when the replace text is the same
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@678 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-07 10:02:11 +00:00
Nick Treleaven
c633b3f2c0 Allow partial word selection for Find Usage
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@671 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-05 12:11:55 +00:00
Nick Treleaven
4f7860b1a2 Disable word and word start matching when regexes are enabled; Don't hide the Find dialog after searching; use Close button.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@669 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-04 12:21:41 +00:00
Enrico Tröger
afa4c4104e Made document related submenus(filetype, encoding, line endings) radio buttons for better usability.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@668 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-03 22:17:10 +00:00
Enrico Tröger
53d91a4c55 Fixed wrong behaviour of Save As on unchanged files.
Don't set file as changed when changing encoding to the same one.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@663 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-02 10:50:53 +00:00
Nick Treleaven
088a2ca529 Clear search flags when using the find toolbar entry; Removed some unnecessary static variables.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@657 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-01 11:33:42 +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
Nick Treleaven
35003deb31 Added Auto indentation and Line wrapping options to Preferences dialog; Split up Miscellaneous items into Display and Features; Renamed Change Selection and Run toolbutton.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-01 10:06:28 +00:00
Nick Treleaven
35a1df7ffc Remember Find in files directory for opening grep results
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@650 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-29 12:06:00 +00:00
Enrico Tröger
85af83f6ae Added some options to the Find in files dialog, made search directory editable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@647 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-28 18:37:32 +00:00
Enrico Tröger
d561c70125 Let the colour chooser pick the colour under the cursor(Win32 code). Added some sanity checks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@643 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-27 23:17:31 +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
Enrico Tröger
4e122c97b7 Removed macro GEANY_WIN32, use G_OS_WIN32 instead.
Introduced global variables for PACKAGE_DATA_DIR and  PACKAGE_LOCALE_DIR, removed macro DOCDIR (these changes are important for the Windows port).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@639 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-26 17:02:16 +00:00
Enrico Tröger
d8c06b041d Small changes to get cross compiling using mingw32 suite working.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@631 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-25 17:45:34 +00:00