3425 Commits

Author SHA1 Message Date
Lex Trotman
ebe459f94f Fix crash due to NULL in project build preferences ( thanks to
Wolfgang Ocker )


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4749 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-10 00:55:21 +00:00
Nick Treleaven
aaa1e9657a Merge gnu-regex branch:
Use POSIX system/GNU regex engine for find & replace 'Use regular
expressions' option. This alters regex syntax a bit - see the docs
for details; we now support '?' operator and replacement backslash
escaping is more standard.
Make regex search imply replacing escaped chars.
Allow \0 backreference replacement for the whole match.
Note: Replace All may be slower; if this is a problem please let me
know.
- code:
Add argument to utils_str_replace_escape() for keeping
uninterpreted backslash escapes e.g. '\\', '\e'.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4746 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-09 16:56:04 +00:00
Nick Treleaven
bba3be69d6 s/geany_find_text/search_find_text
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4742 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-08 16:27:51 +00:00
Nick Treleaven
b8e2b623b4 Implement POSIX-regex Replace All (could be more efficient but
seems OK for now).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4741 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-08 13:45:14 +00:00
Nick Treleaven
17ad8ba1b8 Move search_replace_range() to search.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4740 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-08 13:28:04 +00:00
Nick Treleaven
361b128d81 Refactor document_replace_range() with search_replace_range().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4739 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-08 13:23:32 +00:00
Nick Treleaven
c8bac32a8a Implement POSIX-regex Find All.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4738 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-08 12:27:31 +00:00
Enrico Tröger
f72f6381df Add and use convenience function ui_is_keyval_enter_or_return() and add it to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4737 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 19:33:15 +00:00
Enrico Tröger
37b67fb9f5 Properly show/hide the mesages window when using the View menu item (closes #2961282).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4734 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 17:57:45 +00:00
Enrico Tröger
f07cd20405 Focus the editor widget after hiding the sidebar when it had the input focus (patch by Can Koy, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4733 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 17:44:14 +00:00
Enrico Tröger
74f0afa5dc When editing non-existent config files using the Tools->Configuration Files menu, explicitly set the real_path to avoid presenting the Save As dialog when saving the file (patch by Tony Rick, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4732 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 17:37:00 +00:00
Enrico Tröger
2ec40e1a01 Fix setting the icon for some dialogs if the parent itself is also a dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4731 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 17:28:13 +00:00
Enrico Tröger
80a1d3965d Correctly set the parent widget for the keybinding overwrite confirmation dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4730 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 17:13:54 +00:00
Enrico Tröger
0865b45ed9 Fix broken 'Save' action in 'Resave missing file' dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4728 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 15:41:25 +00:00
Enrico Tröger
25ec844cfa Fix duplicate mnemonics on 'resave missing file' dialog, also move the question from the secondary to the main text to be more compatible with the Gnome HIG.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4727 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 15:32:34 +00:00
Enrico Tröger
08f201b118 Fix crashes when using Save As with no open files (closes #2964406).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4726 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 11:08:19 +00:00
Enrico Tröger
4edb42870d Fix wrong default response for the Debug Messages dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4725 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 10:37:35 +00:00
Enrico Tröger
49dff98485 Add preference for virtual spaces.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4724 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 10:36:27 +00:00
Frank Lanitz
1d3c6d2f0f Add Asturian translation. Thanks to Marcos Costales
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4721 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-05 14:52:10 +00:00
Nick Treleaven
f96c3d1a00 Move new regex code to search.c: search_find_next(),
search_replace_target().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4720 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-02 13:21:41 +00:00
Nick Treleaven
3927eb059b Fix not replacing escapes within a backreference match.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4718 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-01 18:28:57 +00:00
Nick Treleaven
e669410ad1 Fix regex search for '\\'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4717 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-01 18:16:28 +00:00
Nick Treleaven
0f45597b02 Make regex search imply replacing escaped chars.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-01 17:07:56 +00:00
Enrico Tröger
b78451ab1c Fix wrongly auto-detected multiline comments (patch by Eugene Arshinov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4715 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-28 15:05:47 +00:00
Enrico Tröger
6afacd50b9 Make Space on the compiler and messages widgets not focus the editor widget while Enter does (patch by Can Koy, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4713 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-28 14:57:06 +00:00
Enrico Tröger
995a467901 Fix document_try_focus() to make it work with the sidebar document list as well.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4712 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-28 14:32:38 +00:00
Enrico Tröger
32797c0ebd Make Space on the symbol and document list not focus the editor widget while Enter does (closes #2919444, patch by Can Koy, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4711 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-28 14:30:27 +00:00
Dominic Hopf
d1cdc2a345 fix keyboard accelerators in debug messages window
(Thanks Can Koy!)

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4709 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-28 13:06:05 +00:00
Frank Lanitz
40b658e54b Show number of lines of current document inside statusbar. Thanks to Can Koy for providing the patch.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4707 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-28 01:04:19 +00:00
Nick Treleaven
6c1a52d58c Implement regex backreference replacement for \0 (whole match) and
groups \1 to \9.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4706 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-26 16:08:34 +00:00
Nick Treleaven
d4dd143357 Implement single POSIX regex replacement - escape replacements are
done with utils_str_replace_escape().
Warning: regex backreference replacement is still to do.
Make utils_str_replace_escape() accept unnecessary escapes (e.g.
'\e' goes to 'e').



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4705 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-25 18:30:43 +00:00
Nick Treleaven
463100341f Make Find dialog Next button use GNU/system regex instead of
Scintilla engine.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/gnu-regex@4704 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-24 15:27:12 +00:00
Nick Treleaven
483742b69f Make Switch to Editor keybinding reshow the document statistics
line, so user doesn't have to move the cursor.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4700 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-24 15:08:41 +00:00
Enrico Tröger
6826240858 Add keybindings to switch to the sidebar's Document and Symbol list as well as to the Message Window's current tab (patch by Eugene Arshinov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4686 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-21 18:06:42 +00:00
Enrico Tröger
db6c8bcaa0 Add R tagmanager symbol parser (patch by Jon Senior, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4685 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-21 14:54:53 +00:00
Enrico Tröger
21f7989c37 Strip trailing spaces after reflowing a paragraph, patch by Dominik Wagenfuehr, thanks (closes #2945497).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4662 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-13 16:30:09 +00:00
Enrico Tröger
d79d5ea18c Add special cases for handling the Select All keybinding (Ctrl-A) in the toolbar search and goto line text entries (closes #2948040).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4661 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-13 16:13:00 +00:00
Enrico Tröger
ec1d69c630 Fix possible endless loop when trying to detect the encoding of non-text files (patch by Alexey Antipov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-07 18:37:25 +00:00
Enrico Tröger
7ccd9dd46b Partly revert last commit:
Unref the new files toolbar menu when freeing templates as it was done before but unref it *after* the menu has been removed from the GeanyMenuButtonAction.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4652 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-07 18:19:25 +00:00
Enrico Tröger
55f670b777 When reloading configuration, process the current document at last so the symbol list will be updated correctly.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4644 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-06 17:25:58 +00:00
Enrico Tröger
4dfab4f7ee Unref the new files toolbar menu when setting a new menu to fix possible crashes when reloading configuration.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4643 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-06 17:24:43 +00:00
Enrico Tröger
3bcaedd28f Allow saving remote files using g_file_set_contents() as well (patch by Алексей Антипов, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-06 16:00:11 +00:00
Enrico Tröger
3c85d86c9e Explicitly read filetype configuration files before generating global tags to get settings for custom filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4637 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-01 21:44:10 +00:00
Nick Treleaven
6e14e8a667 Fix GLib warning when toggling 'no plugins available' item.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4632 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-02-01 17:45:18 +00:00
Enrico Tröger
eabcdd579f Use utils_spawn_sync() instead of g_spawn_sync().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4631 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-31 22:08:58 +00:00
Nick Treleaven
6ac1bcd3ff Fix renaming sci_send_message(), sci_send_command() function pointers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4583 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-28 17:40:42 +00:00
Nick Treleaven
9021717031 Use full function name for GeanyFunctions function pointers. This
avoids naming conflicts e.g. with C++'s 'new' keyword.
Remove deprecated header pluginmacros.h - use geanyfunctions.h instead.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4552 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-25 15:53:54 +00:00
Nick Treleaven
42ba9f41c8 Avoid some unnecessary reallocations, add comment.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4551 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-25 15:45:27 +00:00
Enrico Tröger
54d1b3ae7e Rename fold_symbol_click() to editor_toggle_fold().
Use editor_toggle_fold() when the 'Toggle current fold' keybinding was used to respect the 'Fold/unfold all children' preference (closes #2935053).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4542 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-24 16:30:29 +00:00
Enrico Tröger
93c3028d3a Replace the old icons with smiley icons from the Rodent icon theme.
Fix showing the same icon for two or more slots.
Minor cleanups.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4541 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-24 16:18:11 +00:00