Nick Treleaven
14001ddc8f
Split filetypes_get_from_filename() into filetypes_detect_from_file()
...
and filetypes_detect_from_filename().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1460 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-18 12:12:51 +00:00
Enrico Tröger
98c77bfa3d
Oops.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1457 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-16 20:29:39 +00:00
Enrico Tröger
e331c40a54
Use g_stat() instead of stat() to prevent file read errors on Win32.
...
Prevent unnecessary filename encoding conversions on Win32.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1456 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-16 15:58:34 +00:00
Enrico Tröger
c4ece8e758
Run print command asynchronously to prevent blocking of the main process ( closes #1695786 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1454 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-15 19:25:22 +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
5f0889407f
Count total replacements made when replacing in a rectangular
...
selection.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1389 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-13 15:40:59 +00:00
Nick Treleaven
a81ab1c4cf
Update the status bar after setting the document file type, if it
...
has changed.
Update the status bar after colourising open files, so the current
tag is accurate.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1386 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-12 16:24:52 +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
Nick Treleaven
dfb1bc9fcc
Fix not setting existing project typenames for C-like files if they
...
don't contain typenames themselves (bug introduced in r1323).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1371 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-08 13:32:03 +00:00
Nick Treleaven
7cb6832039
Speed up loading multiple C-like files when existing documents are
...
open (by ensuring documents are only colourised once).
Add document_open_files(), document_colourise_new().
Add some missing function parameter names to document.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1369 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-06 16:57:09 +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
594935a05d
Fixed switching to the wrong tab when showing the unsaved dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1324 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-23 15:36:21 +00:00
Nick Treleaven
477aa6fa75
Speed up loading multiple C-like files when restoring session or
...
loading command-line files at startup by ensuring documents are
only colourised once.
Also prevent re-colourising C-like documents after saving a file
unless the list of typenames has changed.
Add document_delay_colourise(), document_colourise_all().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-23 13:26:06 +00:00
Nick Treleaven
df7b5c7ca1
Remove the yellow error line marker also when using 'Remove Error
...
Indicators'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1309 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-20 15:48:58 +00:00
Nick Treleaven
6ca53610ba
Add Remove Markers item to the Document menu.
...
Remove Error Indicators no longer removes current tag marker.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1302 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-17 18:06:08 +00:00
Nick Treleaven
599d418f36
Set single undo action when using document_strip_trailing_spaces().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1293 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-16 16:44:16 +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
f548b5b5bb
Added possibility to create and open non-existent files from command line ( closes #1635094 and #1652917 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1290 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-15 23:56:15 +00:00
Nick Treleaven
b8491a2b7d
Move ui_update_tag_list() to treeviews.c.
...
Make treeviews_prepare_taglist() static.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1249 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-05 16:17:44 +00:00
Nick Treleaven
7440840246
Prevent scroll bar from moving when using document_find_text() and
...
no match is found.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1243 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-03 13:14:34 +00:00
Enrico Tröger
943eeae9e9
Made --line and --column also working for already open files (thanks to Mark Knoop for his help).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1240 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-01 15:00:59 +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
ffef5c9dab
Applied patch from Jeff Pohlmeyer to clear the line marker when clearing the compile error markers.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1231 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-26 09:52:24 +00:00
Enrico Tröger
9b195b7421
Oops. Revert the change to ignore --line setting when opening session files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1228 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-24 22:48:52 +00:00
Enrico Tröger
826cd9961e
Added command line option --column to allow setting the initial column for the first opened file on command line.
...
Don't apply the --line and --column options to the first opened session file.
Make --line and --column options work for opening files in an already running instance.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1227 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-24 22:38:53 +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
9a131ece20
Update the symbol list when starting a new document.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1180 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-13 15:25:45 +00:00
Nick Treleaven
4fa9eb2e8c
Don't select the current document when reordering tabs (fixes
...
#1632708 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1175 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-12 13:04:39 +00:00
Enrico Tröger
2bcc43c152
Added a little comment for writing Unicode BOMs.
...
Fixed a compiler warning.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1168 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-07 18:48:56 +00:00
Nick Treleaven
af369cf776
Fix memory leak when using utils_scan_unicode_bom().
...
Prevent invalid memory read in utils_scan_unicode_bom() when text
length is < 4.
Move utils_scan_unicode_bom(), utils_is_unicode_charset() to
encodings.c.
Read the BOM length in handle_bom().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1167 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-07 16:22:41 +00:00
Nick Treleaven
5b3b1af12d
Use load_text_file() in document_open_file() to read, verify and
...
handle encoding using FileData struct.
Refactored handle_[forced_]encoding with FileData* argument.
Update data length after removing BOM chars in handle_bom().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1159 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 12:35:43 +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
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
219dd8c728
Don't set the cursor to the start of the document when attempting to
...
open an already open file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1118 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 12:46:35 +00:00
Nick Treleaven
2697523495
Don't log simple error messages like 'No text to find'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1114 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 11:56:46 +00:00
Enrico Tröger
aa0ad96bb7
Fixed disabled build menu items after opening the first file of a filetype.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1113 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-17 23:57:11 +00:00
Nick Treleaven
8f60640b59
Don't log 'replaced 0 occurrences' status messages.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1109 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-17 17:13:46 +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
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
73f0b49d67
Fix updating the symbol list when a file is saved.
...
Update C-like typedef keywords when reloading a file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1095 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-14 12:54:36 +00:00
Nick Treleaven
533d61fb68
Fix memory leaks when using GdkPixbuf, PangoFontDescription and some
...
strings.
Capitalize main window title.
Add ui_widget_modify_font_from_string().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1089 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-13 15:18:49 +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
33425f1a5d
Added option to execute programs in the VTE instead of executing them in a terminal emulation window ( closes #1594456 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1078 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-10 21:29:04 +00:00
Nick Treleaven
9282656ea9
Read the file's modification timestamp after saving because on
...
Windows it can be later than expected (closes #1611530 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1074 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-09 13:07:23 +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
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
46dc43f0df
Create new tm file object when changing the filetype of a document to avoid a confused tagmanager.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1057 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-07 15:13:49 +00:00