Enrico Tröger
2febc39ed5
Add Tools menu item to reload configuration data (at the moment: templates, filetype extensions/configs and snippets).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2739 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 16:29:12 +00:00
Enrico Tröger
1a1f244cc6
Move code to read snippets configuration to editor.c.
...
Split editor_snippets_free() from editor_finalize().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2738 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 16:14:55 +00:00
Enrico Tröger
1a1361db57
In templates_free_templates() destroy also file template menu items.
...
Add reload argument to filetypes_load_config() to allow re-reading of the settings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2737 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 15:59:00 +00:00
Enrico Tröger
8422e9d2ba
Update waf to its latest SVN rev which makes it 20 KB smaller.
...
Update waf script to reflect waf API changes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2736 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 15:20:50 +00:00
Nick Treleaven
4dfcad1186
Fix stack corruption (cannot use stack GPtrArray as this is just a
...
base-class for private GRealPtrArray).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2735 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 15:15:02 +00:00
Nick Treleaven
dc306e94b3
Use a dynamic pointer array for document sensitive widgets, so it's
...
easy to group widget names together in the source.
Make 'Close other documents' menu item document-sensitive.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2734 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 11:49:39 +00:00
Enrico Tröger
2d5d52a08d
Add plugin signal "populate-edit-menu" to notify plugins when the editing menu is shown.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2733 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-28 15:46:07 +00:00
Enrico Tröger
b2c8cd062c
Attempt to make editor_find_current_word() Unicode-safe. Note: this can be done better.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2732 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-28 15:42:10 +00:00
Enrico Tröger
0f22574e4b
When opening files remotely using the socket, handle filename encoding better and try to auto-detect the used encoding as it might be different each time (hopefully closes #2003980 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2731 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-28 08:15:18 +00:00
Nick Treleaven
e49c35299a
Add Go to Start/End of Line keybindings ( #1996175 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2730 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-27 17:54:36 +00:00
Nick Treleaven
2ba80013bc
Add 'Close Other Documents' File menu command ( #1976724 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2729 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-27 17:30:14 +00:00
Nick Treleaven
9386d36f25
Add keybindings for Previous Message, Previous Error commands
...
(#1931125 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2728 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-26 16:39:41 +00:00
Nick Treleaven
71e03b2cb0
Add Previous Error menu item.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2727 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-26 16:17:28 +00:00
Nick Treleaven
24aca5a740
Move struct _VteTerminal, VteFunctions from vte.h to vte.c.
...
Call vte_restart() in vte_keypress() as the code is the same.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2726 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-26 16:14:00 +00:00
Nick Treleaven
52985a7d5a
Add Previous Message menu item.
...
Don't abbreviate Find Prev Selected.
Add ui_tree_view_find_previous().
Set Next Message menu item sensitivity when clicking on Search menu.
Thanks to Beau Barker (skip76) for an initial version of
ui_tree_view_find_previous() (see #1931125 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2725 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-25 17:38:31 +00:00
Nick Treleaven
a2cd1c4916
Move 2 search prefs to new Search tab of Preferences dialog.
...
Add new search pref: 'Use the current file's directory for Find in
Files' (#1930435 ).
Add PrefEntry struct which is used for an array containing widget
names to lookup; currently only used for 3 search-related
GtkToggleButton prefs.
Add SettingEntry struct which is used for an array containing keyfile
key and group information; currently only used for 3 search-related
gboolean settings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2724 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-25 11:56:58 +00:00
Nick Treleaven
3157ab8420
Split Preferences dialog Editor tab into a sub-notebook, with
...
Features, Completions and Display pages. This also reduces the
minimum height of the Preferences dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2723 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-24 14:32:54 +00:00
Nick Treleaven
361dec09a2
Make keyboard shortcuts dialog non-modal ( #1999384 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2722 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-24 12:25:23 +00:00
Nick Treleaven
b74b38c325
Fix Windows build.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2721 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-21 16:22:51 +00:00
Nick Treleaven
6e2ce22ec1
Move on_editor_expose_event(), create_new_sci() to editor.c.
...
Make on_editor_button_press_event() and on_editor_scroll_event()
static.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2720 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-20 17:10:51 +00:00
Nick Treleaven
a85c71ee9b
Remove document_delay_colourise(), document_colourise_all().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2719 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-20 14:19:57 +00:00
Nick Treleaven
5cd0520618
Use stack buffers for g_vsnprintf() instead of heap allocation.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2718 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-20 14:17:15 +00:00
Nick Treleaven
48204adc80
Don't colourise any documents until they need to be drawn. This
...
should make Save All faster for filetypes that support typename
highlighting, and makes the document_delay_colourise(),
document_colourise_all() functions redundant (they'll be removed in
the next commit).
Note: I'll move on_editor_expose_event() to editor.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2717 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-20 12:34:13 +00:00
Enrico Tröger
a296a2c388
Scroll by page only when Alt key is held to avoid possible conflicts.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-19 17:42:40 +00:00
Enrico Tröger
01dfd2641a
Add "Copy All" to the popup menu of the Status, Compiler and Messages treeviews to copy all items to the clipboard.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2715 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-19 17:37:26 +00:00
Enrico Tröger
744420d2d1
Increase ABI for recent keybindings changes.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-19 17:25:40 +00:00
Enrico Tröger
e46a97a0e0
Allow scrolling page by page by holding down the Shift or Alt key ( closes #1995405 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2713 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-19 17:09:46 +00:00
Enrico Tröger
b7802e2693
Allow symbol auto completion in embedded JavaScript in HTML files ( closes #1997409 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2712 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-19 16:19:26 +00:00
Enrico Tröger
7fc218271a
Improve scrolling on wrapped lines to avoid having search results on wrapped lines but outside of visible lines.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2711 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-19 16:13:19 +00:00
Enrico Tröger
4ded2fe4b0
Add keybindings for Line wrapping, Line breaking, Toggle fold and Replace Spaces by tabs.
...
Refactor different document keybindings callback functions into cb_func_document_action().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2710 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-19 15:58:10 +00:00
Enrico Tröger
9e98928ed1
Add "Replace spaces by tabs".
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2709 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-19 14:34:53 +00:00
Enrico Tröger
f1de93b6f7
Add dialogs_show_input_numeric().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2708 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-19 14:31:09 +00:00
Frank Lanitz
ce216561ae
Update of Finnish translation
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2706 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-18 22:28:53 +00:00
Nick Treleaven
652d073d62
Merge the document-pointer branch.
...
Note: this breaks the plugin API for document functions,
document signal callbacks, msgwin_msg_add() and navqueue_goto_line().
Make all DocumentFuncs use a GeanyDocument* instead of an integer
index, so there's no need to access the documents array or use
DOC_IDX_VALID() - usually just check for non-NULL.
Pass a document pointer to the callbacks of all document-* signals.
Add GeanyDocument::index field for use with the documents array.
Remove DocumentFuncs::get_cur_idx() - use get_current() instead.
Replace DocumentFuncs::get_n_idx() with get_from_page().
Rename DocumentFuncs::find_by_realpath() to find_by_real_path().
Replace DocumentFuncs::remove() with remove_page().
Add 'changed' argument for DocumentFuncs::set_text_changed().
Make NavQueueFuncs and MsgWinFuncs use a GeanyDocument* instead of an
integer index.
Add DOC_VALID() macro.
Add deprecated DOC_IDX() macro to get the document index from a
possibly NULL pointer; deprecate macro DOC_IDX_VALID. These macros
can make porting outside plugins easier; of course, it is better to
rewrite the code to use document pointers.
Use document pointer instead of an index to the documents array
everywhere in the core code.
Rename utils_check_disk_status() in document_check_disk_status() and
move it into document.c.
Adjust plugins to work with these changes.
Add dox for document_set_filetype().
Rename debugging function doc() doc_at() to avoid conflicts.
Update plugin signals dox.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2705 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-18 17:03:08 +00:00
Nick Treleaven
56e77de794
Bring back GeanyDocument::is_valid field as it is clearer and more
...
descriptive than using doc->index != -1.
Add deprecated macros DOC_IDX_VALID and DOC_IDX in plugindata.h,
which can make porting outside plugins easier; of course, it is
better to rewrite the code to use document pointers.
Use is_valid instead of the DOC_VALID macro when iterating over
documents_array, as there are never NULL pointers in it.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/document-pointer@2704 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-18 14:18:26 +00:00
Nick Treleaven
1e4b1594e5
Minor formatting.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/document-pointer@2703 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-18 13:37:03 +00:00
Nick Treleaven
4b1e4056b8
Fix redo, reload commands.
...
Fix focusing editor on notebook tab click.
Minor formatting and use NZV, DOC_FILENAME macros.
Make doc_at() debug function check idx is within range.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/document-pointer@2702 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-18 13:36:33 +00:00
Frank Lanitz
37e619fbd7
Small update of Japanese translation
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2701 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-17 21:30:15 +00:00
Enrico Tröger
497ce61b46
Fix executing commands in the VTE.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2700 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-17 17:04:12 +00:00
Enrico Tröger
ef00bc7ac7
Fix spelling of a few strings (mostly BE -> AE).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2699 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-17 16:18:41 +00:00
Frank Lanitz
97fbcc235a
Small update of Polish translation
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2698 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-16 22:08:49 +00:00
Enrico Tröger
57b3fb52b0
Fix wrong and add missing checks.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/document-pointer@2697 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-16 18:31:59 +00:00
Enrico Tröger
9a143145c7
Backport string casts from Scintilla CVS to avoid compiler warnings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2696 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-15 17:57:57 +00:00
Enrico Tröger
63ca76a822
Add compiler flags to supress Scintilla warnings.
...
Fix old usage of build.env.
Make configure-only options only available when actually configure is used.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2695 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-15 17:55:19 +00:00
Enrico Tröger
bdac40d369
Fix a regression introduced in latest bug fixes and fix some indentation and comments.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2694 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-15 17:50:07 +00:00
Enrico Tröger
d03f72122a
Get rid of GeanyDocument::is_valid, use the index value instead.
...
Remove DOC_IDX_* macros.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/document-pointer@2693 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-15 15:24:44 +00:00
Enrico Tröger
d3439f8a17
Use document pointer instead of an index to the documents array everywhere in the core code.
...
Pass a document pointer to the callbacks of all "document-*" signals.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/document-pointer@2692 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-15 13:35:48 +00:00
Nick Treleaven
45af150af0
Move DOC_VALID() macro to document.h, add dox.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/document-pointer@2691 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-13 15:02:29 +00:00
Nick Treleaven
f87ac06b49
Fix a segfault after clicking on a messages window Find Usage item
...
after the relevant document has been closed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/document-pointer@2690 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-13 14:37:59 +00:00
Enrico Tröger
1baa9d3159
Remove temporary navqueues_ and msgwins_ functions and adjust depending code.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/document-pointer@2689 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-12 20:45:18 +00:00