3798 Commits

Author SHA1 Message Date
Colomban Wendling
d455e83d6e Also use the actual user search in the combo box history
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5833 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-03 13:41:00 +00:00
Colomban Wendling
6f9d845181 In messages show the actual text user entered in Find and Replace dialogs
Previously we could put into a message a string where escape sequences
were already translated.

In the code, now we pass the original text together with the one
that is actually searched for.  New `original_text' field was added to
GeanySearchData.  A bug was fixed in document.c:show_replace_summary(): it
did not escape the "No matches found for ..." string.

Patch by Eugene Arshinov, thanks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5832 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-03 13:40:42 +00:00
Enrico Tröger
3ed484ead9 Focus the editor widget after loading project session files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5829 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-02 21:16:43 +00:00
Enrico Tröger
5141f14007 Add ui_focus_current_document() and document_grab_focus().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5828 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-02 21:15:37 +00:00
Enrico Tröger
4b206e86be Check whether the custom plugin path is one of the user or system plugin paths and if so, ignore it.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5825 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-29 20:08:53 +00:00
Enrico Tröger
8693bde80d Do not add active plugins to the list of plugins when they are already in the list (closes #3308191).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5824 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-29 19:45:16 +00:00
Enrico Tröger
b96aa6628f Fix typo
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5823 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-29 19:38:47 +00:00
Enrico Tröger
247689ec64 Define and use get_plugin_path() always and move platform dependent code into the function definition.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5822 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-29 19:35:38 +00:00
Colomban Wendling
fdc80371c8 Fix preferences help button when activated with the keyboard
Don't hack around to trigger the help when the help button is clicked
on, simply handle the HELP dialog response. This makes the button
correctly show help rather than close the dialog when activated using
the keyboard.

This also drops _button_press_event() need and hack, making the button
correctly respond visually to mouse clicks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5820 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-27 21:00:41 +00:00
Enrico Tröger
243ddcb671 Do not allow 'Save All' even if 'allow_always_save' is set (patch by Dimitar Zhekov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5815 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-22 10:32:31 +00:00
Enrico Tröger
ef0a297d9b Remove unused variables (suggested by Eugene Arshinov).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5814 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-22 10:00:53 +00:00
Enrico Tröger
9f676783f6 Remove unused variables (patch by Eugene Arshinov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5812 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-22 09:58:06 +00:00
Colomban Wendling
6e6b4a61fc Make search.c:on_replace_dialog_response() a little more readable
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5797 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-17 13:47:36 +00:00
Colomban Wendling
36649da8d4 Update the HTML encoding detection regex to accept more valid inputs
HTML 4.01 don't seem to require the http-equiv value to be quoted, so
make the quotes optional.
Also allow more than one space between the meta tag and its http-equiv
attribute.

Closes #3300703.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5796 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-11 22:52:05 +00:00
Colomban Wendling
edc8457e8a Cleanup GeanyWrapLabel a bit
* Do all mandatory initializations in _init() rather than _new();
 * Drop geany_wrap_label_set_text() in favor of plain
   gtk_label_set_text(), making the widget a little simpler and more
   transparent to the caller.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5795 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-10 23:51:01 +00:00
Colomban Wendling
c42c384079 Improve the plugin manager dialog a little
* Add a paned to allow the plugin description part to be resized;
 * Split plugin name, description and authors into distinct entities
   and show aligned and bold titles for them.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5794 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-10 23:50:21 +00:00
Enrico Tröger
80e6949610 Remove unused variables.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5763 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-08 16:02:40 +00:00
Nick Treleaven
bef3d696fd Fix 'Toolbar Preferences' popup menu item (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5760 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-06 15:59:30 +00:00
Nick Treleaven
b36ebf0a6b Save filetype build commands straight after editing them instead of
at shutdown (patch by Dimitar Zhekov, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5758 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-03 16:08:23 +00:00
Nick Treleaven
003a11c576 Allow translations for color scheme [theme_info] keys.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5757 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-03 15:18:52 +00:00
Colomban Wendling
a4eee36359 Bump plugin API version
Nothing in the API actually changed, but the project->file_patterns
fields used not to be set or used at all; so bump the API to let a
plugin depend on this field to be actually useful.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5756 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-02 16:46:34 +00:00
Colomban Wendling
a0d6a1f618 Fix pattern filtering when not searching in subdirectories
grep's --include option doesn't filter files passed explicitly to grep,
so when we build the file list to search in, take the filters into
account.
Also drop the --include options in this case since they aren't useful.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5755 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-01 14:38:57 +00:00
Colomban Wendling
b2142af11f Open the file in the msgwindow even if no line number is specified
Plugins may need to open a file from the message window without
specifying the line number, so allow messages of the form:

file[:line[...]]

For instance, all the following are now correctly parsed and the
corresponding file is opened:

/path/to/file
/path/to/file:line
/path/to/file: something not a line
/path/to/file:line: something
/path/to/file:line something

etc.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5754 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-30 21:50:50 +00:00
Colomban Wendling
e48def3c68 Use project patterns in the FIF dialog
User can now select what kind of file patterns should be used:
 * all: all files are searched
 * project: project patterns are used (only if a project is open)
 * custom: manually entered custom patterns are used

Based on a patch by Jiří Techet, thanks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5753 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-30 21:50:37 +00:00
Colomban Wendling
8da9119bbb Fix project patterns and make them visible
Project patterns support was almost present but deactivated by default
because they were not used for anything. Enable them and change the
pattern separator to space similarly to the find in files dialog.

Based on a patch by Jiří Techet, thanks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5752 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-30 21:50:22 +00:00
Nick Treleaven
f09bac178d Read color scheme name and description for menu item label and
tooltip (based on patch by Matthew Brush, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-30 16:24:53 +00:00
Nick Treleaven
418a77b9bd Revert 'Compiled' filetype group back to 'Programming' (couldn't
agree on whether e.g. Java is a compiled language).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5749 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-30 15:09:07 +00:00
Nick Treleaven
f0d7c2bd65 YAML *ain't* a markup language (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5748 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-30 11:19:51 +00:00
Nick Treleaven
1fcddf011b Make custom filetype titles use 'source file' only if their group
is Compiled or Script.
Use 'source file' for reStructuredText title.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5747 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-29 16:49:32 +00:00
Nick Treleaven
e4c5c8f61f Move text markup languages into Markup filetype group.
Move some programming language filetypes out of the Miscellaneous
group.
Fix filetype title for some languages.
Don't use 'Languages' for Miscellaneous group label.
These changes mostly proposed by Matthew Brush (thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5746 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-29 16:27:40 +00:00
Nick Treleaven
bd4333d78a Remove now unnecessary Custom filetype group.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5745 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-29 15:48:59 +00:00
Nick Treleaven
d7277f17bc Remove Preferences label warning about restarting after editing
template data - this is no longer necessary.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5743 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-26 16:39:41 +00:00
Colomban Wendling
9bdd1663f4 Avoid changing the tag tree if it's not the one of the current document
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5742 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-26 16:21:47 +00:00
Nick Treleaven
c8abc17d62 Change Programming Languages filetype group label -> Compiled
Languages.
Use 'source file' title for custom filetypes.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5741 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-26 15:07:25 +00:00
Nick Treleaven
05394fdf27 Make filetype groups configurable using [Groups] in
filetype_extensions.conf.
Read filetype_extensions.conf when calling filetypes_init_types(),
don't require doclist initialization.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5740 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-26 15:01:04 +00:00
Colomban Wendling
ec4a5ea4f9 Make sure to update the tag list only for the current document
Fix idle tag list updating not to update the tag list if the current
document isn't the one to update anymore. In this case, mark the
document as needing an update and re-schedule an idle update next time
the document gets the focus.

This fixes updating the tag list after switching documents, which
resulted in displaying the wrong tag list.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5738 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-26 13:52:31 +00:00
Nick Treleaven
26ddc69e5d Fix warning in utils_find_open_xml_tag() with malformed tags like
<~foo> (oops).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5737 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-25 16:23:58 +00:00
Colomban Wendling
f622c978c2 When copying filetype groups, add keys from both system and user ones
This makes sure we use the user filetypes in precedence over system ones
even if both are present.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5736 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-24 15:30:32 +00:00
Colomban Wendling
23a266f189 Don't update the tag list when the user is typing
Reset the pending update delay when we get a Scintilla change not to
reparse the tags when the user is actively typing.

This should not be a problem since the user is unlikely to care about
the tags being updated if he's actively typing, and should avoid
annoying delays when actively typing inside very large files.

Patch by Yura Siamashka, thanks.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5735 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-24 15:30:20 +00:00
Nick Treleaven
e12266f3b0 Replace dates on template insertion, not when loading templates.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5734 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-23 12:18:32 +00:00
Nick Treleaven
2a45938205 Add utils_find_open_xml_tag_pos() API function (patch by Eugene
Arshinov, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5733 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-23 11:44:31 +00:00
Nick Treleaven
57b043666c Remove snippets_global_pattern global and use user_data instead.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5731 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-19 16:43:23 +00:00
Nick Treleaven
a89ba90b15 Add utils_string_find() to search in a fixed range.
Change utils_string_replace() to just replace a fixed number of
characters.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5730 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-19 16:36:29 +00:00
Nick Treleaven
06f9d7e068 Fix multiple snippet cursor positions for Tabs + Spaces mode.
Simplify editor_insert_snippet() code now we use cursor marker
strings.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5729 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-19 16:04:31 +00:00
Enrico Tröger
b8f8a36815 Use document_compare_by_tab_order() as default compare function to sort the document list in the document notebook tab menu, this fixes the currently broken default ordering.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5728 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-17 13:41:54 +00:00
Enrico Tröger
9f8c5103a8 Add document_compare_by_tab_order() and document_compare_by_tab_order_reverse() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5727 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-17 13:40:04 +00:00
Nick Treleaven
0b2d16a41a Add function utils_string_replace() to replace in a fixed range.
Remove utils_string_replace_helper() and update cursor marker code.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5726 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-15 16:59:15 +00:00
Nick Treleaven
69c5d1f15e Fix snippets bug: {ob}pc{cb} replaced by '%' instead of {pc}.
Refactor snippets_make_replacements() using geany_cursor_marker.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5725 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-14 17:37:46 +00:00
Colomban Wendling
b5c8b63216 Avoid triggering autocompletion on PHP open tags (closes #3199442)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5724 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-13 21:55:31 +00:00
Nick Treleaven
ac11289415 Fix Ctrl-Shift-[CV] keybindings to work outside the VTE.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5722 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-13 15:04:37 +00:00