Nick Treleaven
046d5ef796
Fix bug with using the default extension, not the user set one, if
...
'New with template' is used before any documents of the same filetype
are open.
Load filetype keyfiles from filetypes_load_config(), not from
styleset_foo_init().
Add highlighting_init_styles(), highlighting_set_styles(),
simplifying a lot of styleset function code.
Remove filetype::style_func_ptr field.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2011 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-02 17:44:05 +00:00
Enrico Tröger
991a6c7811
Create tagmanager status file in configuration directory, not in a guessed temporary directory to ensure having write access. Fix crashes if status file can't be written.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2000 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-01 11:49:29 +00:00
Nick Treleaven
601dfd69f7
Make msgwin_status_add() only log a message, not display it on the
...
status bar.
Make ui_set_statusbar() take a log argument for whether to record the
message in the Status window.
(Plugin API functions already do this).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1971 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-24 10:52:48 +00:00
Enrico Tröger
960a535798
Fix scrolling bugs when searching text and the cursor is outside of the current visible area.
...
Unfold search result.
Also print version of Geany together with GTK/GLib version information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1923 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-01 12:22:44 +00:00
Nick Treleaven
b5e4604562
Add --no-preprocessing, -P option when generating tags files to
...
disable preprocessing of C/C++ source files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1917 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-28 11:48:55 +00:00
Nick Treleaven
a76adc4354
Make Toggle Case use the current word if there's no selection.
...
Make Toggle Case keep an existing selection.
Rename ui_widgets.popup_items to popup_copy_items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1876 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-12 16:01:23 +00:00
Nick Treleaven
274058eb7a
Neaten up the plugin API:
...
Make document_open_file() now wrap document_open_file_full(),
without the idx for reloading or pos arguments.
Replace str_replace() with string_replace_all() in the plugin API.
Add utils_string_replace_all(), taking a GString argument.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1868 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-11 15:21:11 +00:00
Enrico Tröger
8917ec0717
Forgot to commit these changes in r1860. Sorry.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1862 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-09 16:09:28 +00:00
Nick Treleaven
1887a20df4
Add text argument for document_new_file(), so that it's independent
...
from filetype templates.
Make File->New create a blank document, rather than using the None
filetype template.
Add None option for the 'New with Template' menu commands.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1848 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-03 16:09:53 +00:00
Enrico Tröger
501c01aeb4
Remove useless callback wrapper function.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1832 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-28 10:50:18 +00:00
Nick Treleaven
b401b698ea
Move file-related fields from EditorPrefs -> GeanyPrefs.
...
Rename line_breaking -> line_wrapping for EditorPrefs and document.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1823 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-24 16:20:33 +00:00
Nick Treleaven
ef1399e000
Rename MyApp -> GeanyApp.
...
Move most GeanyApp fields into:
GeanyPrefs for (most) Preferences dialog fields;
UIPrefs for non-Prefs dialog visual settings;
UIWidgets for less commonly used widgets such as menuitems and
dialogs;
GeanyStatus for various states the application can be in.
Move some GeanyApp fields into EditorPrefs (and one into each of
CommandLineOptions and SidebarTreeviews).
Add plugin API prefs field.
Move disabling build widgets on Windows to build_init().
Make build callbacks static.
Add treeviews_init() to prepare popup menus and open files treeview.
Replace treeviews_find_node() with treeviews_select_openfiles_item().
Make utils_isbrace() and utils_is_opening_brace() take an
'include_angles' argument (to separate from editor_prefs).
Make 'Goto matching brace' keybinding include <> angle brackets.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1815 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-23 11:34:06 +00:00
Nick Treleaven
fc3a74e7f6
Add 'Enable plugin support' Prefs checkbox.
...
Minor edit of load VTE option text.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1805 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-16 15:20:38 +00:00
Nick Treleaven
9f46d083c5
Move #define PLAT_GTK to geany.h.
...
Move filetype typedef to geany.h.
Don't #include any src/*.h files from headers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1800 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-15 15:37:21 +00:00
Nick Treleaven
15cec02d07
Add plugin symbol geany_callbacks (see plugindata.h for details).
...
Add GeanyObject type with "document-new", "document-open",
"document-save" signals.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1785 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-10 16:11:17 +00:00
Nick Treleaven
87fe0b9531
Set app->debug_mode when GEANY_DEBUG is defined.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1742 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-25 11:49:11 +00:00
Nick Treleaven
2178c7c887
Rename ui_close_buttons_toggle() ui_document_buttons_update().
...
Move app->sensitive_buttons to ui_utils.c for easier maintenance,
rename to document_buttons.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1727 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-20 12:06:51 +00:00
Nick Treleaven
ae6de4f5c6
Use extern 'app' and 'filetypes' global variables in headers, so that
...
G_MODULE_BIND_LOCAL can later be used when loading plugins to detect
any unresolved symbols.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1725 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-19 11:49:53 +00:00
Nick Treleaven
9db2a589c5
If -i, --new-instance options are passed, disable loading & saving of
...
session files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1699 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-13 11:07:35 +00:00
Nick Treleaven
f409bca515
Capitalize first letter of command-line argument descriptions.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1666 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-05 12:28:24 +00:00
Nick Treleaven
fb16ea2b96
Add -p, --no-plugins options to disable plugin support.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1665 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-05 12:15:54 +00:00
Nick Treleaven
6e53eacc70
Added very basic plugin support - any plugins found in
...
/lib/geany are loaded at startup. Windows support will be
added later.
Added Demo plugin (currently installed by default), which adds an
item in the Tools menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1643 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-26 16:17:16 +00:00
Enrico Tröger
22c3dd033b
Use setlocale to enable translation of strings before GLib command line parser gets active.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1640 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-25 17:49:45 +00:00
Enrico Tröger
464a45d6b4
Add new command line option --ft-names to get a list of supported filetype names.
...
Complete rewrite of auto completion to make it user-definable and much more flexible.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1628 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-17 17:56:48 +00:00
Nick Treleaven
05cbc77bab
Rename some menubar widget names.
...
Use indentation spelling in variable names.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1611 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-12 15:16:17 +00:00
Enrico Tröger
8cae1cc3ee
Add auto focus (to auto focus widgets below mouse cursor).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1609 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-11 08:58:37 +00:00
Enrico Tröger
167723236f
Improved code to avoid hiding the messages window (caused by last commit).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1599 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-04 16:12:58 +00:00
Enrico Tröger
38d45d2549
Removed unneeded function destroyapp.
...
Re-maximize the main window on startup when closed in maximized state (closes #1730369 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1598 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-04 15:37:11 +00:00
Enrico Tröger
56cbbea656
Add rpl_malloc() for better compatibility with non-GNU systems (thanks to Harri Koskinen for reporting).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1596 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-04 13:22:43 +00:00
Enrico Tröger
3f30a4cc96
Applied patch from Dave Moore to add simple code navigation (thank you).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1590 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-02 16:14:07 +00:00
Nick Treleaven
4193196248
Move MyApp::pref_editor_* to editor.h, using editor_prefs struct.
...
Move INDENT_* enums to editor.h.
Move utils_get_whitespace() to editor.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1587 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-29 16:30:54 +00:00
Nick Treleaven
fdaa689bff
Rename sci_cb.[hc] editor.[hc].
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1584 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-28 16:07:30 +00:00
Enrico Tröger
39dbad8829
Improve sensitivity of recent files sub menus.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1572 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-25 14:42:43 +00:00
Enrico Tröger
c1f109bc13
Add default startup directory option ( closes #1704988 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1561 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-23 13:44:25 +00:00
Enrico Tröger
8077ddd9f4
Set widget names for the main widgets to allow users to define custom styles in .gtkrc-2.0.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1503 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-04 15:33:07 +00:00
Nick Treleaven
f39df4005f
Add support for generating global tags files for non-C-like
...
filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1480 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-27 11:00:29 +00:00
Nick Treleaven
4a7d4da2be
Separate filetype menu item creation from filetypes_init_types() so
...
it can be called without initializing GTK (for non-GUI commands).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1478 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-25 15:01:14 +00:00
Nick Treleaven
492cc39a9e
Restore the current project when restarting Geany.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1468 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-21 12:25:17 +00:00
Enrico Tröger
398ddf6d73
Added context actions to run custom commands on current selection or the current word below cursor.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1453 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-15 18:09:59 +00:00
Enrico Tröger
c84d9b2803
Added options to show or hide the statusbar as well as the editor scrollbars.
...
Added sci_set_scrollbar_mode() to easily show or hide the scrollbars.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1444 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-10 17:06:57 +00:00
Nick Treleaven
d3dfe1dd1d
Add option --generate-tags (-g) to generate a global tags file from
...
a list of source files. Currently this is only likely to work
correctly for C-like source files. Run 'geany -g' for syntax info.
Remove short option for hidden option --generate-data-files.
Update tm_workspace_create_global_tags() from Anjuta 1.2.4a.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1411 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-21 13:26:16 +00:00
Enrico Tröger
9dc61832fc
Added different auto indention modes to select who should Geany indent new lines ( closes #1615605 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1373 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-08 18:02:08 +00:00
Nick Treleaven
7cb6832039
Speed up loading multiple C-like files when existing documents are
...
open (by ensuring documents are only colourised once).
Add document_open_files(), document_colourise_new().
Add some missing function parameter names to document.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1369 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-06 16:57:09 +00:00
Enrico Tröger
8cd6856293
Changed location of translation files to lib\locale on Win32.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1358 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-02 09:58:03 +00:00
Enrico Tröger
549f19444e
Added custom commands to send selected text through some definable commands and replace the selection with the output.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1334 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-25 14:26:55 +00:00
Nick Treleaven
806dd5be1d
Add descriptions for all .c source files below the file header.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-24 11:41:56 +00:00
Nick Treleaven
477aa6fa75
Speed up loading multiple C-like files when restoring session or
...
loading command-line files at startup by ensuring documents are
only colourised once.
Also prevent re-colourising C-like documents after saving a file
unless the list of typenames has changed.
Add document_delay_colourise(), document_colourise_all().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-23 13:26:06 +00:00
Nick Treleaven
61146eb323
Support filetype templates for all filetypes (scan
...
~/.geany/templates/filetype.* at startup).
Default templates are now created in init_ft_templates().
Move on_new_with_template() to templates.c.
Move on_filetype_change() to filetypes.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1305 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-19 13:26:06 +00:00
Enrico Tröger
f548b5b5bb
Added possibility to create and open non-existent files from command line ( closes #1635094 and #1652917 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1290 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-15 23:56:15 +00:00
Enrico Tröger
3dabf02946
Convert config, application and documentation dir paths to locale encoding before using it.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1268 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-12 16:32:56 +00:00