2441 Commits

Author SHA1 Message Date
Enrico Tröger
9975737eff Add and use ui_combo_box_prepend_text_once() to add project's base_path to the Find in Files dialog even if another project was opened.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3237 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:53:55 +00:00
Enrico Tröger
0bfd8eb893 Add the project's base_path to the directory list in the Find in Files dialog if a project is open.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3236 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:53:33 +00:00
Enrico Tröger
631da007a4 Capture command's stderr and log it into the Debug messages window when a Find in Files search fails.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3235 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:53:13 +00:00
Enrico Tröger
5baacafd6a Add 'waf' to EXTRA_DIST.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3234 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:52:54 +00:00
Enrico Tröger
4a4e969c2a Change the default values for selection fore- and background colour to some sane values.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3232 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-15 16:51:05 +00:00
Enrico Tröger
8f949362e7 Clear previously set search indicators before when using 'Mark' in the Find dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3231 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-15 15:53:40 +00:00
Enrico Tröger
5178e73699 Fix possible crash when using the Find in Files dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3230 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-15 15:53:05 +00:00
Enrico Tröger
c41f63c0b9 Fix wrong highlighting of search results when using 'Mark' in the Find dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3229 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-15 15:52:36 +00:00
Nick Treleaven
56cf2bc7ef Make auto_table() use editor_insert_text_block().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3228 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-14 18:02:28 +00:00
Nick Treleaven
f07faeb9f7 Add editor_insert_text_block() newline_indent_size argument to add
fixed indentation on each newline, or -1 to read from insert_pos's
line.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3227 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-14 17:24:54 +00:00
Nick Treleaven
0ef7d92782 Fix bug with utils_string_replace_all().
Make utils_str_replace() call utils_string_replace_all() internally
(for better memory management and allowing replacements to match
search string).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3226 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-14 14:15:32 +00:00
Nick Treleaven
44bff7b443 Prompt the user for whether to move the configuration directory or
just quit instead. This is useful if the user is already running an
older binary of Geany and the second instance is newer.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3225 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-14 13:38:59 +00:00
Nick Treleaven
2c8bf0e2a9 Make editor_insert_text_block() transform any \n newline chars with
the correct line ending string.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3224 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 17:22:23 +00:00
Nick Treleaven
e244b17676 Make API function utils_string_replace_all() able to make
replacements that match the search string.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3223 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 17:19:52 +00:00
Enrico Tröger
44df3a593e Remove a few duplicate keywords.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3222 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 16:42:51 +00:00
Enrico Tröger
54a5f200a6 Add an encoding combo box to the Find in Files dialog to choose an encoding to use for searching (i.e. the encoding in which the search text is passed to 'grep').
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3221 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 16:29:56 +00:00
Nick Treleaven
0cbbc2ede0 Make function editor_insert_text_block() interpret any \t tab chars
as indent widths when inserting text.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3220 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 16:29:10 +00:00
Enrico Tröger
d7caf0f9c0 Follow XDG Base Directory specification and use $XDG_CONFIG_HOME/geany (most often this is ~/.config/geany) as default configuration directory (closes #2166229).
The previous configuration will be moved to the new location if the new directory doesn't exist yet.
Move utils_make_settings_dir() into main.c.
Remove win32_get_appdata_folder() because g_get_user_config_dir() does the same.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3219 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 14:37:47 +00:00
Nick Treleaven
a16dd54629 Fix indenting for Tabs & Spaces mode when inserting snippets.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3218 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 13:18:02 +00:00
Enrico Tröger
04e41e15a4 Fix indentation to consistently use tabs (patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3217 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-12 19:37:02 +00:00
Nick Treleaven
a3d18c844b Add other files for last commit (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3216 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-12 17:55:07 +00:00
Nick Treleaven
7ac0e5f3b3 Fix empty statements and possible memory leaks with
utils_free_pointers() in utils_str_casecmp().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3213 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-12 13:05:33 +00:00
Enrico Tröger
023cf3f325 Add a file template for LaTeX (patch by Herbert Voss, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3212 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 19:50:40 +00:00
Enrico Tröger
321b460d10 Remove obsolete tag in Doxyfile.in.
Fix doxygen warnings for undocumented enum in plugindata.h.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3211 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 19:19:26 +00:00
Enrico Tröger
d1b5ace11c Replace uses of g_strcasecmp() with our own implementation, utils_str_casecmp().
Add utils_str_casecmp() to the plugin API.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3210 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 19:18:51 +00:00
Enrico Tröger
7009116b1a Evaluate only the strings 'TRUE' and 'true' to true in utils_atob(), any other string is treated as false.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3209 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 18:15:14 +00:00
Enrico Tröger
0b49cf4449 Use 'utf8' as encoding package in the LaTeX template as it seems it is the most used version for UTF-8 support.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3208 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 18:07:35 +00:00
Nick Treleaven
0f5bce0172 Use separate keyword table for D (still missing keywords though).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3206 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 17:42:54 +00:00
Nick Treleaven
eafc95a59f Apply patch from Colomban Wendling to add Vala filetype (thanks).
Fix c.c tagLetter() bug.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3205 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 16:33:20 +00:00
Enrico Tröger
a163a443cc Remove unused lexers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3203 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 18:28:14 +00:00
Enrico Tröger
98cf47a6a8 When using custom file templates, add the extension of the template file to the filename of the new document.
Make {datetime} wildcard generally available for most template types.
Allow use of most available wildcards for custom file templates, too.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3202 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 18:27:23 +00:00
Nick Treleaven
0e54a39c9b Make Python symbol tree method icon look more like a function than
variable.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3201 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 17:31:45 +00:00
Nick Treleaven
d9184913a9 Add icons for Conf symbol tree items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3200 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 17:16:35 +00:00
Nick Treleaven
5329a0c59d Group Conf symbol list tags by section.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 17:03:11 +00:00
Nick Treleaven
1f6a611580 Merge symbol-tree branch:
Apply patch (with some reworking) from Conrad Steenberg
(gnocci-man) to show methods as children of classes in the symbol
list, and for other tag types to group children by their parents
(thanks; #2083110).
This works for any filetype that TagManager can parse tag scopes
for.
Fix not allowing a leading underscore when using scope name prefix.
Fix symbol-tree branch bug: missing C++ constructor declaration
tags.
- Code changes:
Use TMTag instead of GeanySymbol so the symbol tree can read the
scope without parsing it.
Free tag list straight after use, instead of next time the list is
generated.
Use TMTag pointer tree model column instead of line number.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3197 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-10 16:57:18 +00:00
Nick Treleaven
12e29d7ebd Make Version Diff plugin set the indent type for diffs based on the
current file's indent type.
Add editor_set_indent_type() to the API.
Note: uses editor.h plugindata.h include.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3194 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-08 13:32:55 +00:00
Nick Treleaven
1f1cbd4523 Make Ctrl-click go to matching brace if there's no current word.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3193 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-08 13:14:09 +00:00
Enrico Tröger
efcdca4057 Don't auto close <hr> tags in HTML (closes #2226117).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3191 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:40:06 +00:00
Nick Treleaven
71523b8a2b Fix segfault when showing Find in Files dialog when no documents are
open (r2998, #2228544).
Fix segfault for FIF from last commit (oops).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3182 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-06 17:26:29 +00:00
Nick Treleaven
a7e94bdf64 Refactor search_show_find_in_files_dialog().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3181 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-06 17:13:18 +00:00
Nick Treleaven
8b29e6b7f3 Fix sorting tags with missing parents by line if the names and
scopes are identical.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3174 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-05 12:58:53 +00:00
Nick Treleaven
c0064114ca Replace macro with static function.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3173 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-05 12:50:29 +00:00
Nick Treleaven
1d69b53f57 Fix sorting tags whose scope name doesn't have a tag (e.g. for C++
source file methods with class definition in a header file).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3172 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-04 18:14:04 +00:00
Nick Treleaven
a371bea2a0 Add bug number.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3171 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-04 13:43:30 +00:00
Nick Treleaven
eebfbbf488 Fix Prefs dialog Tools tab Context Action open button showing the
file dialog twice.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3170 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-04 13:33:08 +00:00
Nick Treleaven
8355e6a158 Fix snippets and smart indent using too much indentation when the
line contains whitespace after non-whitespace characters. This
might also have affected other features (auto table, etc).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3169 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-04 13:05:15 +00:00
Nick Treleaven
5f32d93886 Fix GLib warning when pressing Close File keybinding and no
documents are open.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3167 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-03 17:38:50 +00:00
Nick Treleaven
3b25dca469 Remove symbol tree 'skipped' code, instead sort parents first when
adding tree iters. This should fix missing symbols sometimes.
Use TMTag instead of GeanySymbol so the symbol tree can read the
scope without parsing it (fixes problems with '.' characters in tag
names for e.g. HTML).
Free tag list straight after use, instead of next time the list is
generated.
Use TMTag pointer tree model column instead of line number.
Fix not allowing a leading underscore when using scope name prefix.
Remember parent tree iter for a tag if it is used for a child tag's
scope, rather than just for tags of a certain type. This should be
more flexible for various filetypes.
Various symbol-tree code refactoring.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/symbol-tree@3166 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-03 17:25:35 +00:00
Enrico Tröger
bae8ca23d7 Revert last change as it breaks (again) the primary X selection as well as the mouse cursor on the scrollbar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3163 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-30 15:23:27 +00:00
Enrico Tröger
c9fc4a1048 Try to fix a weird bug in reparenting the notebook widget when splitting on Windows. It still occurs on unsplitting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3161 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-29 20:52:22 +00:00