262 Commits

Author SHA1 Message Date
Enrico Tröger
737c7a6d76 Add an option to store the project file of new projects inside the project base directory.
Doc: Add descriptions for the Search tab in the preferences dialog.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3037 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-02 15:09:33 +00:00
Enrico Tröger
75d46bff7e Merge InstantSave, AutoSave and BackupCopy plugins into the plugin 'Save Actions'.
Add a section for documentation of internal plugins in the documentation.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3035 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-02 13:37:35 +00:00
Nick Treleaven
6d4068f7b3 Reformat HACKING as true reStructuredText.
Add 'make hacking-doc' target to generate hacking.html.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3029 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-01 16:47:25 +00:00
Enrico Tröger
bb8ffda3f4 When generating documentation, first try rst2html.py as it is the upstream default.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3022 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-29 18:09:43 +00:00
Nick Treleaven
9b6e4c02a2 Remove use of non-greedy matching in error_regex - this doesn't seem
to be supported by common versions of glibc (thanks to AC for
reporting).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3020 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-29 12:13:45 +00:00
Enrico Tröger
71dbd0f2d6 Make 'Previous/Next word part' keybindings configurable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3011 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 18:29:42 +00:00
Nick Treleaven
01f4689ef6 Minor formatting changes - make the using a Makefile paragraph a
note.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2995 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 11:38:58 +00:00
Nick Treleaven
ea42918879 Detect which error regex match contains the line number, and use the
other match for the filename.
Update 'Build system' docs for custom error regexes.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2994 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 11:30:44 +00:00
Nick Treleaven
bf3ea6c5f0 Add filetypes.* [build_settings] key 'error_regex' to support custom
error message parsing using an extended regular expression.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2988 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-23 16:12:40 +00:00
Nick Treleaven
5dde790601 Add 'Tab key indents' pref, which replaces hidden pref
'use_tab_to_indent'; it's now on by default.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2971 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-18 12:43:41 +00:00
Nick Treleaven
a8a0002950 Edit 'About Geany' text to be more concise.
A few minor fixes.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2961 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-17 17:01:38 +00:00
Nick Treleaven
771d40cadd Update feature list in About Geany section.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2960 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-17 16:14:51 +00:00
Nick Treleaven
03f0700c23 Add plugin signal "document-close", sent just before a document is
closed.
(Merged from split-window-plugin branch).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2953 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-16 15:47:26 +00:00
Nick Treleaven
86a7cb2ec9 Fix wrong parameter for "project-close" signal.
(Merged from split-window-plugin branch).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2952 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-16 15:42:27 +00:00
Nick Treleaven
ddfb591f0b s/auto detect/auto-detect.
Minor formatting fixes.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2946 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-15 13:03:05 +00:00
Enrico Tröger
cc3ea8f437 Update feature list.
Small updates of outdated information.
Remove 'Supported Systems' sub section.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2927 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-08 14:26:20 +00:00
Enrico Tröger
89ac2e8766 Fix typo.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2925 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-08 14:24:03 +00:00
Frank Lanitz
6de8a4d237 Little typgraphic update to use minus insted of hyphen inside man page
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2923 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-07 18:21:47 +00:00
Enrico Tröger
266cbed6ff Add 'Stop scroll at last line' editor pref (patch by Timothy Boronczyk, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2918 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-01 11:18:06 +00:00
Enrico Tröger
f101e95aab New website address: www.geany.org.
Merge README.I18N with latest from the wiki.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2917 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-01 11:15:16 +00:00
Nick Treleaven
6f60b4bc2c Add 'Max. symbol name suggestions' autocompletion pref.
Edit some autocompletion pref strings.
Remove some trailing commas in array initializers (oops).
Move GEANY_TOGGLE_MARK, GEANY_MAX_AUTOCOMPLETE_WORDS to keyfile.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2914 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-29 17:00:02 +00:00
Nick Treleaven
7fafa7b39c Separate runtime requirements and build requirements subsections.
Mention that usually building GTK manually is not necessary.
Run 'make install' as root.
Add some subsection titles.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2912 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-29 12:33:44 +00:00
Nick Treleaven
0371bb7853 Change hidden pref scroll_stop_at_last_line to TRUE (#2030914).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2910 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-27 16:41:02 +00:00
Nick Treleaven
57ff84b183 Make Ctrl-click on a word perform Go to Tag Definition (this
shouldn't conflict with column editing as this uses
Ctrl-Shift-click).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2889 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-14 16:39:51 +00:00
Enrico Tröger
af7e8526c8 Add middle-click document closing to the Tips and Tricks appendix.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2882 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-13 18:36:56 +00:00
Nick Treleaven
45b65ee7fd Regenerate geany.html (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2881 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-13 16:50:09 +00:00
Nick Treleaven
7b1c98cf68 Add Tips and Tricks appendix.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2880 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-13 16:35:49 +00:00
Enrico Tröger
866f8fbefe Add a preference for the comment toggle mark string("~ " by default).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2825 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-27 18:41:07 +00:00
Enrico Tröger
ccd2186f6a Add preferences for year, date and datetime format of the corresponding template wildcards to make them more flexible.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2775 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-13 11:51:00 +00:00
Enrico Tröger
d3adc32c19 Add support to use template wildcards in snippets.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2773 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-13 10:52:38 +00:00
Nick Treleaven
18ced215d1 Remove deprecated macros and typedefs (except DOC_IDX_*), as some of
them are likely to cause naming conflicts and all plugins will need
updating since 0.14 anyway.
Add geany macro that simply expands to geany_data.
Deprecate app, main_widgets, prefs, project macros, as the geany
macro can be used instead.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2761 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-07 16:16:18 +00:00
Nick Treleaven
61bea15355 Rename plugin-symbols.c pluginsymbols.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2760 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-07 13:08:07 +00:00
Enrico Tröger
b14568d1f8 Rename signal "populate-edit-menu" into "update-editor-menu".
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2755 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-05 09:37:37 +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
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
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
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
Enrico Tröger
57b50763df Remove useless path separator.
Set $(docdir) if it is not set automatically.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2672 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-09 17:43:48 +00:00
Enrico Tröger
46feb9df7d Fix two ambiguous encoding names for better compatibility with libiconv (closes #1986134).
Improve the regular expression for detecting encoding cookies to allow more variants (e.g. "encoding: utf-8").

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2659 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-08 12:18:20 +00:00
Enrico Tröger
7c591fbebd Change preprocessor checks for sys/time.h and remove unnecessary sys/stat.h check.
Remove useless or unused configure checks.
Install THANKS file by default.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-04 15:43:52 +00:00
Enrico Tröger
7583e5e3db Add media types for screen and print to have a clean version of the manual for printing.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2622 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-28 15:35:27 +00:00
Nick Treleaven
e00f73bc5d Note: this breaks the plugin API.
Remove plugin symbol configure().
Add plugin symbol plugin_configure() which is used to tell Geany a
widget to pack into the plugin preferences dialog, and connect a
response callback for when the dialog receives a user decision.
This allows Geany to in future implement a common preferences dialog
for all plugins, without breaking the plugin API/ABI.
Add Apply button for plugin preference dialogs (to indicate plugins
should handle the apply response as well as OK, as a multiple plugin
configuration dialog would want an apply button).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2621 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-28 13:05:09 +00:00
Nick Treleaven
df1a8e63a3 Add plugin_ prefix for plugin symbols version_check, init and
cleanup. Deprecate init and cleanup; update PLUGIN_VERSION_CHECK
macro.
Add a debug message and fail to load a plugin if it has no
plugin_version_check() function.
Check that plugin keybinding names have been set in plugin_init(),
otherwise print a debug message and ignore all of them.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2616 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-26 17:09:43 +00:00
Nick Treleaven
8c1c59eecf Deprecate PLUGIN_INFO() in favour of PLUGIN_SET_INFO().
Remove plugin symbol info(), which is replaced by plugin_set_info()
and a new symbol plugin_info. This is so the PluginInfo struct is
zero'd first by Geany, so plugins are still ABI compatible if we
want to add any more fields in the future.
Fail to load a plugin if plugin_info->name is not set.
Remove now unused string.h include from plugindata.h.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2612 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-23 17:08:58 +00:00
Nick Treleaven
f8afbf10ed Make GeanyCallback, geany_callbacks deprecated, and replace with
PluginCallback, plugin_callbacks. This is because the array is owned
by the plugin, not Geany.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2610 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-23 12:29:32 +00:00
Nick Treleaven
59934acd65 Add Main Page links to plugindata.h and pluginmacros.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2604 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-19 15:22:56 +00:00
Nick Treleaven
45ba1bfbac Add API documentation for pluginmacros.h.
Make Doxygen define GEANY_DISABLE_DEPRECATED.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2603 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-19 15:21:31 +00:00
Nick Treleaven
d99a4ea675 Note: this breaks the plugin API.
Split GeanyFunctions out of GeanyData so data pointers can be
appended before the function pointer structs without breaking the
ABI.
Rename GeanyFunctions fields with a p_ prefix to avoid name
conflicts.
Add new plugin symbol geany_functions.
Nearly all plugins will now need to declare the following:
'GeanyFunctions *geany_functions;', which is now used by
pluginmacros.h.
Add doxygen examples for geany_data and geany_functions.
Move deprecated document and filetype typedefs to src/plugindata.h,
as plugins aren't required to use pluginmacros.h.
Initialize geany_data by copying a stack struct so the compiler can
check for any missing field initializers.
Rename plugin macro p_encoding to p_encodings to follow the core
function encodings_ prefix.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2599 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-19 12:35:35 +00:00
Enrico Tröger
629fc70a35 Allow loading projects from command line (closes #1961083).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2598 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-18 16:27:08 +00:00
Enrico Tröger
392d1f863f Add preferences for default end of line characters for new files (closes #1895362) and to disable the automatic continuation of multi-line comments in C-like languages.
Enable multi-line continuation also for CSS files.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2580 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-14 15:36:27 +00:00