118 Commits

Author SHA1 Message Date
Enrico Tröger
639e23effa Use pluginmacros.h (for classbuilder and htmlchars plugins).
Add highlighting_get_style().
Add highlighting_get_style() to the plugin API.
Rename DocumentFuncs field in GeanyData struct to avoid name clashes.	      


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2103 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-16 11:27:59 +00:00
Enrico Tröger
e3e90f3de9 Improve error message when external command could not be executed.
Allow use of external command also for the special ".." item.      


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2091 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-05 13:54:43 +00:00
Enrico Tröger
c380fb75b4 Set svn:keywords and svn:eol-style for all files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2089 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-04 15:44:45 +00:00
Enrico Tröger
083e5057af Let right-clicks select an item.
Don't load unused symbols from library.
Grab focus after right-clicked in the VTE widget.	  


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2088 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-04 15:28:17 +00:00
Enrico Tröger
01928d453a Add ".." path entry to every directory.
Fix display of double backslash in path entry on Windows.
Add basic path entry auto completion.
Print error message when external command fails to execute.	    


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2087 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-04 13:25:41 +00:00
Enrico Tröger
c27e9b54c6 Add search_show_find_in_files_dialog() to the plugin API.
Make path entry of filebrowser plugin editable.
Add "Open with" and "Find in Files" popup menu items to filebrowser  plugin and add configuration dialog.	    


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2085 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-02 10:52:19 +00:00
Enrico Tröger
de8caa6055 Remove obsolete SVNdiff plugin, use the VC Diff plugin.
Add option for amount of characters to trigger symbol completion.
Add document_find_by_filename to the plugin API.		


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2084 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-01 17:53:36 +00:00
Enrico Tröger
42e026fe4b Fix display of double slash in path entry.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2074 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-29 17:56:36 +00:00
Enrico Tröger
ac48d14376 New plugin: Auto Save.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2067 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-22 17:03:53 +00:00
Enrico Tröger
2b07283739 Add plugin manager dialog to select plugins to load at startup and to call a plugin configure dialog.
Add configure symbol for plugins which is called by Geany when a configure dialog for the plugin is requested, optionally.
Add author field to plugin info struct.
Add sample configure dialog to the demo plugin.
Fix cleanup code in filebrowser plugin to remove it completely when unloaded.			


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2060 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-20 18:15:46 +00:00
Enrico Tröger
fe50d70430 Remove unused variable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2056 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-18 17:40:08 +00:00
Nick Treleaven
31c1cae631 Added plugin 'VC Diff', slightly modified from a patch by Yura
Siamashka (thanks). It was adapted from the SVN Diff plugin.
Currently it supports SVN, CVS and GIT.
Fixed GTK warnings when the current file has no filename and when
the current directory has no version control system.
Made some refactoring changes to make the VC_RECORD struct contain
all necessary attributes about each version control system.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2048 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-14 16:44:45 +00:00
Nick Treleaven
27fafa5ac7 Make 'Set path from document' use the current working directory or
the project base path when no document is open.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2047 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-13 16:41:59 +00:00
Nick Treleaven
6687b67074 Fix popup menu item capitalization according to Gnome HIG.
Add separator menu item to VTE popup menu.
Move VTE Prefs item below Input Methods.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2037 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-08 16:21:46 +00:00
Nick Treleaven
4495997fcf Add menu separator so users don't accidentally click revert and lose
all their work.
Capitalize revert menu item.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2024 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-06 13:09:04 +00:00
Nick Treleaven
4c6f97d148 Fix gtk_widget_destroy() warning when unloading plugin and no svn
binary is in /usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/nmt/bin.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2023 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-06 13:05:20 +00:00
Nick Treleaven
190a7e9d33 Fix sign comparison warning.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2022 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-06 12:54:04 +00:00
Frank Lanitz
293bba1692 Added support for svn revert and a little patch from Yura Siamashka to re-use an already created tab for a new diff on the same file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2018 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-05 14:21:46 +00:00
Frank Lanitz
35c84d4cbc Make svn error messages better readable
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1992 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-31 10:16:43 +00:00
Nick Treleaven
b01425321e Rename tagm macro tagmanager (should be clearer).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1991 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-29 17:16:51 +00:00
Nick Treleaven
7e704a20ea Don't dereference symlinks.
Make sure current_dir always has a full path.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1990 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-29 17:15:03 +00:00
Nick Treleaven
28504ed889 Add a separate menu item for diff from the current directory.
Disable file and directory diff menu items if the current document
has no filename.
Disable project menu item when no project is open.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1988 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-29 16:34:12 +00:00
Nick Treleaven
563ea7180d Factor out common make_diff() and show_output() functions for both
file and directory diffs.
Show any SVN error message on the status bar.
Use directory name as prefix for output filename when doing a
directory diff.
Don't remove filename extension for file diffs.
Fix some memory leaks.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1987 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-29 12:57:23 +00:00
Enrico Tröger
dd67516ac9 Add macro project for app->project.
Rename macro tm to tagm to avoid conflicts with tm struct of time.h.
Fix a warning about shadowing a global symbol.
Use plugin macros in Export and SVNDiff plugins.	    


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1985 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-28 20:54:25 +00:00
Nick Treleaven
e4a593a4e6 Show icons only in the file browser toolbar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1983 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-26 16:09:00 +00:00
Nick Treleaven
cf3f0594d4 Capitalize menu item text.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1982 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-26 16:07:36 +00:00
Nick Treleaven
9dceb9b263 Capitalize menu item text.
Minor editing of some strings.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1981 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-26 16:04:38 +00:00
Nick Treleaven
bdeaee38f0 Prevent conflict with document::encoding (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1980 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-26 15:54:28 +00:00
Nick Treleaven
58c702dafa Prevent conflict with document::encoding.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1979 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-26 15:53:19 +00:00
Nick Treleaven
1825a8dd40 Make all plugins distributed with Geany have the same version number
as Geany.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1978 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-26 12:32:23 +00:00
Frank Lanitz
634bc6c328 Added feature to make a diff from an open project or a current directory
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1977 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-25 17:38:35 +00:00
Nick Treleaven
94fbc4ba12 Add pluginmacros.h to define common macros for app, utils, etc.
Add more documentation/comments to demoplugin.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1974 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-24 12:04:15 +00:00
Nick Treleaven
58243ee302 Add 'Show hidden files' checkbox in the popup menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1973 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-24 11:15:00 +00:00
Nick Treleaven
b8cdb9774a Use the current directory when there are no documents open.
Add popup menu with Open command.
Separate toolbar code from init().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1972 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-24 11:02:43 +00:00
Nick Treleaven
78c058816d Set the status bar instead of logging status messages.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1969 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-23 15:20:38 +00:00
Frank Lanitz
04c7d00af9 SVNdiff: Improvment of handling of non-UTF diffs
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1968 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-23 11:49:28 +00:00
Nick Treleaven
a54ddf4795 Added File Browser sidebar plugin.
Rename 'Open Files' sidebar tab 'Documents'.
Add keybindings->send_command() and tm->get_real_path() to the plugin
API.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1966 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-22 12:42:19 +00:00
Enrico Tröger
6b94181466 Apply most of the patch from #1794250 (thanks):
Remove compiler specific flags.
Add configure option to specify the path to libvte.so.
Remove many unnecessary configure checks.
Stop configure if msgfmt was not found(gettext not installed).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1961 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-19 14:48:19 +00:00
Enrico Tröger
7c78e6a4a0 Fix wrong callback signatures in Export plugin and make menu item document sensitive.
Add dialogs_show_save_as() to the plugin API.   


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1950 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-16 09:01:13 +00:00
Frank Lanitz
2f08de916b Saves document before executing svn diff
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1947 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-15 18:30:26 +00:00
Frank Lanitz
0e492c8ff9 Update of windows makefile. Ooops
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1945 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-15 08:53:26 +00:00
Frank Lanitz
885cde0ad5 Added new plugin svndiff
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1944 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-15 08:52:20 +00:00
Nick Treleaven
db980f3f83 Add ui->set_statusbar() to the plugin API.
Make plugin function msgwin->status_add() not set the statusbar - but
ui->set_statusbar() can now be used to do both with the log argument.
After Geany 0.12 this is how the core versions of those functions
will work, so the status window can be set independently.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1903 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-25 16:21:35 +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
73557807a8 Remove get_zoom from plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1867 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-10 18:25:03 +00:00
Enrico Tröger
7be0947ff1 Sort list of files to build on Windows. Add geanyobject.c to the list of files to build on Windows. Fix some warnings and build errors on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1850 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-03 18:19:27 +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
Nick Treleaven
83a82cfdd4 Don't install Demo plugin.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1838 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-29 16:11:42 +00:00
Enrico Tröger
4c3d5d8072 Fix comment for PLUGIN_INFO.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1831 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-28 10:48:52 +00:00
Enrico Tröger
edc0ceaad6 Add version to plugin info fields and two other fields for future use.
Add option to show/hide the small crosses on each file tab (closes #1757680).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1826 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-25 14:16:52 +00:00