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
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
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
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
Nick Treleaven
cfa2b8b532
Show 'Replaced X matches in Y documents' message when using Replace in
...
Session.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4533 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-18 17:05:13 +00:00
Enrico Tröger
7ba4a81181
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 22:55:18 +00:00
Enrico Tröger
554ccd4f60
Mark the document only as changed if it is not closed afterwards.
...
Prevent possible segfaults if the document was closed when it is missing from the filesystem.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4501 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 20:29:45 +00:00
Enrico Tröger
16f67dc702
When closing a document after it was deleted from the filesystem, don't ask whether it should be saved first.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4498 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 15:50:53 +00:00
Enrico Tröger
0be8ea8b8c
Make dialogs_show_prompt() more flexible to take up to three button/response code pairs to be shown.
...
Add a close button to the dialog when asking to Re-Save a deleted file (closes #2916954 , based on a patch by Dominik Stadler, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4495 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 15:37:40 +00:00
Enrico Tröger
d91e7b762b
Add document_need_save_as().
...
Show the Save As also for documents created from filetype templates instead of saving them directly with the untitled filename.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4494 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 15:36:52 +00:00
Nick Treleaven
cf540a712f
Deprecate documents_foreach() as it looks more like a function; use
...
foreach_document() instead.
Generate dox even for GEANY_DISABLE_DEPRECATED declarations.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4399 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-04 15:28:38 +00:00
Nick Treleaven
de6d967182
Improve 'Detect from file' indentation pref by ignoring lines with
...
indentation wider than 24 characters as this is more likely to be
alignment than indentation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4371 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-26 18:13:50 +00:00
Nick Treleaven
d17141ca9a
Support loading global tags files for custom filetypes.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4343 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-20 12:07:12 +00:00
Nick Treleaven
68657d327b
Add filetype "tag_parser" key so custom filetypes can use an existing
...
tag parser.
Add tm_source_file_get_named_lang().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4339 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-19 14:24:40 +00:00
Nick Treleaven
120af21ccb
Call editor_apply_update_prefs() from editor_create_widget() so
...
correct tab width and other settings are applied for Split Window
plugin.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 17:55:30 +00:00
Nick Treleaven
0b8c46a8a8
Add highlighting_set_styles() to API, use for Split Window plugin so
...
filetypes.common settings get set too.
Make highlighting_set_styles() take GeanyFiletype pointer instead of
filetype id.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4322 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 16:54:15 +00:00
Nick Treleaven
539f8b3068
Add document_get_notebook_page() to API.
...
Minor edits of dox.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4311 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-14 12:21:18 +00:00
Enrico Tröger
541d7689ff
Apply set default encoding for existing files only if the files are non-Unicode (patch by Alexey Antipov, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4294 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-11 10:51:12 +00:00
Nick Treleaven
caec1ec7c3
Rename treeviews.[hc] -> sidebar.[hc].
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4252 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-28 11:16:59 +00:00
Nick Treleaven
a60a63cc39
Fix showing the document before reload dialog when opening an
...
already-open file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4232 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-24 16:19:27 +00:00
Enrico Tröger
ae11cb9b1a
When reloading files, use the previously set encoding instead of detecting it again ( closes #2862041 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4223 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 20:48:50 +00:00
Nick Treleaven
1986d915cc
Run ./scripts/fix-alignment.pl -w src/*.[hc] plugins/*.[hc] (skipping generated files).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 14:13:38 +00:00
Nick Treleaven
ab52956150
Don't move the cursor when reloading.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4197 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 13:56:58 +00:00
Nick Treleaven
91f91d75fd
Switch int/gint.
...
Regenerate docs, fix section level.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4174 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-10 16:59:20 +00:00
Enrico Tröger
316f77f1f8
Add new plugin signal: "document-before-save".
...
Add get_line_end_position(), set_target_start(), set_target_end(), replace_target() to the plugin API (patch by Eugene Arshinov, thanks).
Add new plugin signal: "document-filetype-set" (closes #2852286 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4162 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:51:11 +00:00
Enrico Tröger
2c7c2b91fc
Fix crash when opening documents.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4158 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-06 16:50:04 +00:00
Nick Treleaven
ccb873dafa
Apply patch from Thomas Martitz to improve sidebar type-ahead code:
...
Use gtk_notebook_set_current_page() instead of
document_open_file_full() when choosing an item from the documents
list.
Avoid using goto in document_open_file_full().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4151 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-04 11:34:12 +00:00
Nick Treleaven
a4eec38feb
Enable type-ahead find for sidebar symbols and documents tabs
...
(patch by Thomas Martitz, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4148 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-03 12:04:27 +00:00
Nick Treleaven
89a708bd11
Merge trunk changes.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@4142 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-31 15:46:19 +00:00
Enrico Tröger
ecb76f914c
Add a translation hint to an ambiguous format string.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4093 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-16 16:20:41 +00:00
Nick Treleaven
2bb49a38c8
Support adding custom filetype files e.g. filetype.Foo.conf. (Only
...
tested with empty file so far).
Allow GeanyFiletype::extension to be NULL.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@4070 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-12 11:19:54 +00:00
Enrico Tröger
b25980ba8d
Small corrections to some API docs.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4063 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-09 20:31:03 +00:00
Nick Treleaven
6bd343b21d
Rename 3 sci functions to sci_set_target_start(),
...
sci_set_target_end(), sci_replace_target() to match the SCI_
message name.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4042 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-29 17:54:48 +00:00
Nick Treleaven
c27eb4a19f
Add dox note for documents_array about using documents_foreach() macro.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4018 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-23 17:30:50 +00:00
Nick Treleaven
7a77c3a214
Fix scrolling horizontally after finding a search match with the
...
search bar or Find Next/Previous which is off-screen.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4016 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-23 16:54:32 +00:00
Enrico Tröger
39a74c5a18
Continue unifying usage of @a and @c markup elements in API docs.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4010 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-21 22:12:13 +00:00
Nick Treleaven
d906a77975
Remove relative/untidy path elements when creating new documents
...
with a filename (e.g. from the command-line) (#2823998 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4007 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-21 16:23:05 +00:00
Nick Treleaven
3c8a24d0fd
Remove relative/untidy path elements when opening documents (closes
...
#2823998 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3998 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-20 15:37:02 +00:00
Enrico Tröger
c7871c70e8
Enable file monitoring for files which are written to disk by Geany for the first time.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3978 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-16 15:36:27 +00:00
Nick Treleaven
b051d01215
Apply patch from Eugene Arshinov to reload color schemes via menu
...
(thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3955 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-13 11:58:21 +00:00
Enrico Tröger
c447144e6f
Ignore 'created' events for file monitoring, for now.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3937 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-08 22:22:44 +00:00
Enrico Tröger
83804ab746
Simplify the USE_GIO_FILEMON preprocessor checks.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3934 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-08 22:20:41 +00:00
Enrico Tröger
7067b84a09
Rework the GIO based file monitoring code.
...
Now it is used only to indicate a possible change of the file, the real check if the file has been changed is performed by stat().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3933 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-08 22:20:17 +00:00
Enrico Tröger
259639f3ee
Use the new Scintilla struct names prefixed with 'Sci_'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3912 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-04 09:20:28 +00:00
Nick Treleaven
e1ecc75f44
Make GeanyDocument::file_type always be non-NULL, even for a new
...
document with no filetype set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3868 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-17 10:46:43 +00:00
Enrico Tröger
6f0d6d79ab
When closing a document, mark it as invalid before removing it from the documents notebook (this fixes wrong Save All button state when closing an unsaved document because the "switch-page" signal handler was using old data).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3842 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-05 15:57:01 +00:00
Enrico Tröger
01fec60c06
Fix a crash when USE_GIO_FILEMON is enabled at closing a document which was reloaded shortly before.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3729 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-24 19:29:20 +00:00
Enrico Tröger
8fcef38e82
Add a hidden preference 'use_safe_file_saving' to save files to disk by creating a temporary file first. This has serious side effects, please read the documentation before enabling this.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3722 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:54:04 +00:00