Nick Treleaven
c3300b2da9
Add NULL-safe FILETYPE_ID macro to get filetype::id from pointer.
...
Allow insertion of GPL notice and file header when the filetype is
not set.
Add commenting for PHP & HTML GPL notice and file header templates.
Add make_comment_block() to templates.c.
Move document_prepare_template(), filetypes_get_template() to
templates.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@994 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-14 16:03:25 +00:00
Nick Treleaven
bd1137d9e9
Rename utils_strcmp() utils_str_equal() (to avoid return value
...
confusion with strcmp()).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@978 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-08 16:21:46 +00:00
Nick Treleaven
67ce2f51b0
Move utils_get_tag_list() to symbols.c, make utils_find_tm_tag()
...
static.
Move symbols_get_global_keywords() to get_global_typenames() in
highlighting.c.
Add symbols_find_tags_as_string(), symbols_get_tag_list(),
symbols_get_macro_list(), symbols_find_in_workspace() from various
tag-related existing code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@976 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-08 11:42:05 +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
e79dc052f1
Prevent possible invalid memory read.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@950 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-01 10:58:47 +00:00
Nick Treleaven
1844a2d051
Fix sign comparison warnings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@947 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-30 11:49:35 +00:00
Enrico Tröger
ff5e5cca37
Fixed bug when setting colour of open files list entry on new, unnamed files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@946 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-29 14:44:04 +00:00
Enrico Tröger
77a424a270
Colour also the open files list items according to their changed state.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@944 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-29 13:03:13 +00:00
Enrico Tröger
6146cc9399
Fixed typo.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@934 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 19:25:35 +00:00
Enrico Tröger
07c61dc5cf
Fixed access before check ;-).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@933 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 19:23:19 +00:00
Nick Treleaven
82f1dca4aa
When replacing tabs by space, prevent the scroll position changing,
...
and fix a possible change of cursor position.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@932 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 17:03:24 +00:00
Enrico Tröger
60bb784493
Moved utils_convert_to_utf8() and utils_convert_to_utf8_from_charset() to encodings.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@931 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 14:48:07 +00:00
Enrico Tröger
e3f6f0a890
Added warning message dialog, united dialogs_show_info() and dialogs_show_error() to dialogs_show_msgbox().
...
Added warning message when opening files that cannot be handled correctly and set them to read-only mode.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@930 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 14:38:48 +00:00
Enrico Tröger
c08f1553d4
Added GEANY_DEBUG ifdef around the doc() function.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@925 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-24 16:29:17 +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
Enrico Tröger
47a71bc3aa
Added new encoding "None" to open files without any character conversions ( fixes #1580456 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@920 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-23 20:32:37 +00:00
Enrico Tröger
84a4e8d817
Added drop down box to the file open dialog to select an encoding.
...
Added possibility to open a file without any character set conversions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@919 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-23 00:05:42 +00:00
Nick Treleaven
03eae9ebc4
Add separate Replace button, rename old button Replace & Find.
...
Add expander to group Replace All options for Replace dialog.
Use Replace All In Session button instead of checkbox.
Add border, update packing for all dialogs in search.c.
Add ui_dialog_vbox_new() for consistent dialog borders.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@914 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-22 14:56:05 +00:00
Nick Treleaven
89b3f4c314
Remove unused argument. Rename document_find_next() document_search_bar_find().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@910 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-21 11:00:37 +00:00
Nick Treleaven
f391cc9588
Make search bar automatically wraparound if necessary.
...
Detect when Find has searched all text and display a 'not found'
message on the status bar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@909 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-21 10:50:45 +00:00
Nick Treleaven
e821acb863
Move build menu related functions and callbacks to build.c.
...
Renamed ui_update_build_menu -> build_menu_update.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@902 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-18 19:35:42 +00:00
Nick Treleaven
ecdb3beca3
Fixed Undo/Redo setting the wrong document changed state when making
...
edits after saving a file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@901 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-17 16:41:29 +00:00
Enrico Tröger
028fe98373
Finished new Undo system. Now some more actions can be undone and also redone.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@878 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-10 16:02:41 +00:00
Enrico Tröger
c3972d6b2d
Connect only once to the "sci-notify" signal.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@876 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-10 13:52:22 +00:00
Nick Treleaven
93ba5ba45f
Removed the GEANY_MAX_OPEN_FILES limit, using a dynamic array.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@875 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-09 16:08:53 +00:00
Enrico Tröger
ac359bc327
Implemented simple "shebang" detection.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@869 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-06 23:23:05 +00:00
Enrico Tröger
6f00febd3c
Fixed crash when using "Make object" on new files( closes #1570818 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@866 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-04 19:14:57 +00:00
Enrico Tröger
642889e97a
Reordered command line options alphabetically.
...
Added new command line option --line to set the initial line for the first opened file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@863 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-03 13:16:42 +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
f93a8f9df2
Clear the symbol list when opening a file with no tags.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@856 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-30 16:15:45 +00:00
Nick Treleaven
913e783a43
Reorder the recent files list if necessary when a file is
...
(re)opened - closes #1552178 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@805 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-09 12:03:11 +00:00
Nick Treleaven
0701ee9941
Use handle_forced_encoding(), handle_encoding() and handle_bom()
...
when opening files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@804 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-08 15:05:32 +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
4a44c1a000
Fixed wrong function call order when removing documents.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@797 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 18:26:08 +00:00
Enrico Tröger
557b86dc2b
Fixed a crash when a compiler output reports an error in a blank line.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@796 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 17:53:58 +00:00
Enrico Tröger
09d7f30aec
Convert tag names to UTF-8 before showing them in the sidebar.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@794 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 17:31:53 +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
Enrico Tröger
5a05227d87
Don't quit when an error occurs while saving changed files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@792 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 18:33:48 +00:00
Enrico Tröger
d7951f66d0
Added new file template for filetype HTML.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@791 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 16:55:40 +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
f74ae89922
Escape special characters when shown in the status window after "Replace All" or replacing a selection.
...
Set the focus to the replace entry widget when pressing the tabulator key in the find entry widget in the replace dialog.
Set the focus to the find entry widget when pressing the tabulator key in the directory entry widget in the FIF dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@783 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-02 23:28:34 +00:00
Nick Treleaven
973ea2144d
Add document_get_current()
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@781 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-02 20:49:11 +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
58b7b0a122
Added missing inclusion of vte.h.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@776 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-31 18:50:10 +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
a8a33cd9ef
Fixed missing styling settings on new files (needs to be tested).
...
Now the filetype sub menu in the document file menu will be updated when the filetype is set by the filename on new files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@764 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-26 17:12:55 +00:00
Enrico Tröger
dbab01c2c1
Added counter when using "Replace All" and display the count of replacements in the status window.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@761 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-23 18:08:48 +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