3475 Commits

Author SHA1 Message Date
Nick Treleaven
e4690e1598 Fix wrongly adding newlines for templates on disk that don't have
LF line endings when default line endings are not LF, e.g. Windows.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5362 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 18:03:06 +00:00
Nick Treleaven
47fe273033 Use g_file_replace_contents() if available to save documents - this
should help workaround bugs in GVFS.
Needs testing.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5361 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 17:42:54 +00:00
Nick Treleaven
e5fefb576d Print "GIO" and "built-in regex" if enabled with --version.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5360 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 17:39:46 +00:00
Nick Treleaven
d39ae0de1c Don't allow pasting of numbers followed by other characters in the
Go to Line dialog/field (patch by Dimitar Zhekov, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5359 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 17:15:22 +00:00
Nick Treleaven
98489fed51 Fix Alt+[0-9] switching tabs when other modifiers are also held.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5355 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 15:03:16 +00:00
Nick Treleaven
e7206f35b8 Add sci_get_lexer() to plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5352 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 12:55:17 +00:00
Nick Treleaven
0a6f825926 Respect 'Smart' home key for Shift+Home (fixes #3100290).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5350 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-01 16:16:20 +00:00
Nick Treleaven
b6e22c8bdf Detect user and system filetype configuration files as Conf
filetype.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5349 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-01 15:18:32 +00:00
Nick Treleaven
92d9221042 Remove trailing directory separator for app->datadir and
app->docdir for consistency with the other directory fields.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5348 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-01 15:17:22 +00:00
Nick Treleaven
dbb9a1b2b8 Fix not autocompleting when breaking lines.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5343 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-29 15:00:42 +00:00
Nick Treleaven
6903c883eb Move plugin_set_info prototype and parenthesize arguments for
PLUGIN_SET_TRANSLATABLE_INFO (based on patch by Colomban Wendling,
thanks).
Fix putting pointer symbol before name, not after type.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5341 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-28 16:44:52 +00:00
Nick Treleaven
1c60d96df5 Fix using gint* for integer settings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5337 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-28 11:45:14 +00:00
Nick Treleaven
eae0f24ba4 Simplify line breaking using SCI_NEWLINE message.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5336 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-27 16:28:28 +00:00
Nick Treleaven
0c689be43d Restore check for malformed XML tag from last commit.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5335 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-27 16:12:05 +00:00
Nick Treleaven
3b90c93953 Fix notebook tab menu icons using theme for "text/plain" filetypes.
Make filetype mime_type "text/plain" instead of NULL.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5334 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-27 14:20:18 +00:00
Nick Treleaven
2ab1bb9387 Avoid calling gtk_icon_size_lookup() twice unnecessarily.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5333 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-26 18:11:23 +00:00
Nick Treleaven
ad222465b3 Leave text/plain mime_type fields as NULL (like custom filetypes).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5332 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-26 17:36:35 +00:00
Nick Treleaven
d32a7e4619 Add notebook tab document icons (based on patch by Colomban
Wendling, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5331 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-26 17:30:16 +00:00
Nick Treleaven
3455a25cf4 Show mimetype icon in sidebar Documents list (patch by Colomban
Wendling, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5330 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-26 17:20:48 +00:00
Nick Treleaven
e0702ea2b2 Add filetype mimetype field (patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-26 16:02:30 +00:00
Nick Treleaven
f87e9d5d68 Sort filetypes_by_title last instead of on insertion to prevent
exponential time.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5328 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-26 15:33:16 +00:00
Nick Treleaven
a7c7d314dc Change default for 'Override Geany keybindings' to on.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5327 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-26 15:20:53 +00:00
Nick Treleaven
0055f819b1 Edit XML tag autocompletion pref and tooltip to include HTML.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5325 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-26 15:11:06 +00:00
Nick Treleaven
568f1853d2 Remove unnecessary uses of FILETYPE_ID() macro with
GeanyDocument::file_type.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-25 17:24:47 +00:00
Nick Treleaven
3c6212544c Auto-indent after an HTML/XML line with a missing closing tag (patch
by Eugene Arshinov, thanks).
Behaviour only applies if XML tag autoclosing is off.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5322 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-25 16:58:13 +00:00
Nick Treleaven
c25d9856fe Add 'Ensure consistent line endings' file saving pref (patch by
Manuel Bua, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5321 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-25 16:24:55 +00:00
Nick Treleaven
a274363275 Move HTML automatic <table> tag completion into a 'table' snippet
so the user can decide when to use it (patch by Eugene Arshinov,
thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5320 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-25 16:07:15 +00:00
Nick Treleaven
b231d9a903 Rename wrong function argument name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5318 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-22 12:27:11 +00:00
Nick Treleaven
558126a0c8 Fix not changing edited keybindings when cancelling the Preferences
dialog.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5317 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-22 12:20:37 +00:00
Nick Treleaven
23b5f0a753 Refactor shared code with kb_cell_edited_cb().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5316 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-21 16:40:31 +00:00
Nick Treleaven
50cb5e54c9 Rename confusing callback name for prefs dialog response.
Edit comment - use Stash for new 'simple' prefs.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5315 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-21 16:19:06 +00:00
Nick Treleaven
ad5bedd07a Rename confusing Grab Key dialog callback functions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5314 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-21 16:06:53 +00:00
Nick Treleaven
f091b41ff8 Allow 'Foo=' in filetype_extensions.conf to remove all patterns.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5313 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-21 15:59:06 +00:00
Nick Treleaven
a366609fb0 Remove filetype default extensions from code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5312 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-21 15:41:24 +00:00
Nick Treleaven
1487173f71 Don't write 'ft->lang = -2' for filetypes with no tag parser; this is the default anyway.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5311 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-20 16:28:06 +00:00
Nick Treleaven
a83ee579fa Move filetype comment_{open,close} defaults into data files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5310 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-20 16:22:58 +00:00
Nick Treleaven
e28f5bc3ab Move filetype 'extension' default into data files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5309 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-20 16:15:39 +00:00
Nick Treleaven
38e23095dd Add Erlang filetype (patch by Taylor Venable, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5308 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-20 15:45:25 +00:00
Nick Treleaven
133d9439b9 Use radio buttons for View->Editor->Color Schemes menu.
Don't hide the menu when only the default item is available.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5305 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-20 11:49:50 +00:00
Nick Treleaven
3367e67393 Use editor_get_eol_char() instead of inline copy.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5304 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-20 11:38:37 +00:00
Nick Treleaven
1e37c8922b Prevent debug message about a missing 'default' named style when
using just a user color scheme file.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5303 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-18 17:13:59 +00:00
Nick Treleaven
cb262580b3 Fix saving project indent prefs straight after using project
properties.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5302 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-18 14:16:08 +00:00
Enrico Tröger
de16fda4f6 Fix off-by-one bug in 'search_mark_all'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5299 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-16 12:37:20 +00:00
Nick Treleaven
6738d3bc1e Use secondary text for 'file not found on disk' dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5298 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-15 17:24:13 +00:00
Nick Treleaven
9e1ff83085 Add 'Insert New Line Before/After Current' keybindings (based on
patch by Eugene Arshinov, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5297 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-15 17:15:13 +00:00
Nick Treleaven
21536dfb84 Fix build with GLib 2.8.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5293 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-08 14:42:41 +00:00
Nick Treleaven
2473ab6862 Revert X11 workspace socket support as it needs more work; moved
to workspace-sockets branch.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5292 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-07 14:10:32 +00:00
Nick Treleaven
24fd9c1824 Set C++, C# title as *source* file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5289 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-07 13:45:23 +00:00
Nick Treleaven
b109889e5e Add Lisp filetype (patch by Mário Silva, thanks).
Note: Lisp lexer was taken from Scintilla instead.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5286 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-06 17:10:15 +00:00
Nick Treleaven
572826e5e3 Group Open dialog encoding options by submenus (patch by Adam Ples,
thanks; #3047717).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5284 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-06 15:53:53 +00:00