Nick Treleaven
51e4000038
Move symbol list popup menu code to symbols.c.
...
Add symbols_init().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3243 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 13:29:53 +00:00
Nick Treleaven
97c7ae0e4f
Refactor with sidebar_add_common_menu_items().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3242 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 12:58:53 +00:00
Enrico Tröger
614fdbd0a7
When passing NULL to utils_str_replace(), also return NULL (fixes broken new file template list).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3241 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:55:23 +00:00
Enrico Tröger
79ed7d7604
Plug little memory leak.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3240 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:55:05 +00:00
Enrico Tröger
a63aaef475
Improve layout of the combo box labels in the Find in Files dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3239 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:54:46 +00:00
Enrico Tröger
18095fca79
Note: this breaks the plugin API for Editor and Scintilla functions.
...
Rename all functions in editor.c and sciwrappers.c which are related to indicators for more consistency.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3238 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:54:28 +00:00
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
ce2dfe1c9f
Add note about set permissions to the API docs of utils_mkdir().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3233 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-16 17:52:38 +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
24c7302f9c
Add Split Vertically command (patch by Moritz Barsnick, thanks;
...
#2219553 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3215 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-12 16:21:32 +00:00
Nick Treleaven
648e9f281f
Ignore hacking.html.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3214 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-12 13:39:35 +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
Enrico Tröger
b0a6d923dc
Improve the checking for 'rst2html.py' when creating HTML docs.
...
Update Waf to 1.5.0 (final).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3207 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-11 18:07:16 +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
c1717671d8
Set SVN file properties
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3192 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 15:55:40 +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
Enrico Tröger
474a0b4410
Add new filetype 'Matlab' ( closes #1938631 , patch by Roland Baudin, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3190 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:39:45 +00:00