Revision: 1931
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1931&view=rev
Author: dimitrov-adrian
Date: 2011-02-14 18:27:54 +0000 (Mon, 14 Feb 2011)
Log Message:
-----------
* Completed file tracking functionality, now tracking and files that are not in the cached directories. This is the last TODO point from the started idea. Today is it exactly one from the first release. * And small other fixes
Modified Paths:
--------------
trunk/geany-plugins/treebrowser/ChangeLog
trunk/geany-plugins/treebrowser/src/treebrowser.c
Modified: trunk/geany-plugins/treebrowser/ChangeLog
===================================================================
--- trunk/geany-plugins/treebrowser/ChangeLog 2011-02-13 13:27:14 UTC (rev 1930)
+++ trunk/geany-plugins/treebrowser/ChangeLog 2011-02-14 18:27:54 UTC (rev 1931)
@@ -8,6 +8,8 @@
(FIXED) Double click on bookmarks, do nothing
(FIXED) show/hide hidden files not working on Windows
(FIXED) "Go Up" not working if the current path ends with slash // thanks to <dmaphy> for the report
+ * It is impossible to rename file/directory in Windows, dunno why
+ * It is impossible to delete file/directory in Windows, dunno why
+---------------------------+
@@ -21,21 +23,31 @@
(DONE) Saving state of Showbars in config file everytime where is changed
(DONE) oneclick document opening
(DONE) filter separating ex.: "*.c;*.cpp;*.h"
- * Complete following path from current document view
+ (DONE) Complete following path from current document view
(DONE) Hide object files as native filebroser (*.o;*.a;*.so;*.dll;*.lib..)
(DONE) Using font from geany settings for sidebar
(REJECTED) Migrating to stash
(DONE) Adding keybindings for renaming/deleting/refreshing
(DONE) Add option to change bars position // requested by <dmaphy>
(DONE) Add option to autorename point the newest created objects by the Treebrowser
- * It is impossible to rename file/directory in Windows, dunno why
- * It is impossible to delete file/directory in Windows, dunno why
+
+-------------------------------+
| Development release ChangeLog |
+-------------------------------+
+14-02-2011 Adrian Dimitrov <dimitrov.adrian(a)gmail.com>
+
+ * One year release (from the idea to working plugin, thanks for all for the support)
+
+ * src/treebrowser.c
+ Completed file tracking functionality, now tracking and files that are not in the cached directories
+ This is the last TODO point from the started idea. Today is it exactly one from the first release.
+ Make default terminal for Windows always be "cmd"
+ Fixed directory separator for when chrooting be G_DIR_SEPARATOR_S not always "/"
+
+
12-02-2011 Adrian Dimitrov <dimitrov.adrian(a)gmail.com>
* src/treebrowser.c
Modified: trunk/geany-plugins/treebrowser/src/treebrowser.c
===================================================================
--- trunk/geany-plugins/treebrowser/src/treebrowser.c 2011-02-13 13:27:14 UTC (rev 1930)
+++ trunk/geany-plugins/treebrowser/src/treebrowser.c 2011-02-14 18:27:54 UTC (rev 1931)
@@ -223,6 +223,58 @@
#endif
}
+static gchar
+*path_is_in_dir(gchar* src, gchar* find)
+{
+ int i = 0;
+ gchar *diffed_path = "";
+ gchar **src_segments = NULL, **find_segments = NULL;
+ guint src_segments_n = 0, find_segments_n = 0;
+ gboolean found = FALSE;
+
+ src_segments = g_strsplit(src, G_DIR_SEPARATOR_S, 0);
+ find_segments = g_strsplit(find, G_DIR_SEPARATOR_S, 0);
+
+ src_segments_n = g_strv_length(src_segments)-1;
+ find_segments_n = g_strv_length(find_segments)-1;
+
+ /*
+ * If the find is in src
+ */
+ for (i = 1; i<=find_segments_n; i++)
+ {
+ diffed_path = g_strconcat(diffed_path, G_DIR_SEPARATOR_S, find_segments[i], NULL);
+ if (utils_str_equal(src, diffed_path) == TRUE)
+ {
+ found = TRUE;
+ break;
+ }
+ }
+
+ /* Reversed
+ *
+ * If src is in find
+ */
+ if (!found)
+ {
+ diffed_path = "";
+ for (i = 1; i<=src_segments_n; i++)
+ {
+ diffed_path = g_strconcat(diffed_path, G_DIR_SEPARATOR_S, src_segments[i], NULL);
+ if (utils_str_equal(find, diffed_path) == TRUE)
+ {
+ found = TRUE;
+ break;
+ }
+ }
+ }
+
+ g_strfreev(src_segments);
+ g_strfreev(find_segments);
+
+ return (found ? diffed_path : NULL);
+}
+
/* Return: FALSE - if file is filtered and not shown, and TRUE - if file isn`t filtered, and have to be shown */
static gboolean
check_filtered(const gchar *base_name)
@@ -346,14 +398,17 @@
static gchar *
get_terminal()
{
+#ifdef G_OS_WIN32
+ return "cmd"
+#else
gchar *terminal;
const gchar *term = g_getenv("TERM");
-
if (term != NULL)
terminal = g_strdup(term);
else
terminal = g_strdup("xterm");
return terminal;
+#endif
}
static gboolean
@@ -387,13 +442,13 @@
static void
treebrowser_chroot(gchar *directory)
{
- if (g_str_has_suffix(directory, "/"))
+ if (g_str_has_suffix(directory, G_DIR_SEPARATOR_S))
g_strlcpy(directory, directory, strlen(directory));
gtk_entry_set_text(GTK_ENTRY(addressbar), directory);
if (!directory || strlen(directory) == 0)
- directory = "/";
+ directory = G_DIR_SEPARATOR_S;
if (! treebrowser_checkdir(directory))
return;
@@ -737,24 +792,78 @@
}
static gboolean
+treebrowser_expand_to_path(gchar* root, gchar* find)
+{
+ int i = 0, j = 0;
+ gboolean founded = FALSE, global_founded = FALSE;
+ gchar *new = "";
+ gchar **root_segments = NULL, **find_segments = NULL;
+ guint root_segments_n = 0, find_segments_n = 0;
+
+ root_segments = g_strsplit(root, G_DIR_SEPARATOR_S, 0);
+ find_segments = g_strsplit(find, G_DIR_SEPARATOR_S, 0);
+
+ root_segments_n = g_strv_length(root_segments)-1;
+ find_segments_n = g_strv_length(find_segments)-1;
+
+
+ for (i = 1; i<=find_segments_n; i++)
+ {
+ new = g_strconcat(new, G_DIR_SEPARATOR_S, find_segments[i], NULL);
+
+ if (founded)
+ {
+ printf("\n* %s", new);
+ if (treebrowser_search(new, NULL))
+ global_founded = TRUE;
+ }
+ else
+ if (utils_str_equal(root, new) == TRUE)
+ founded = TRUE;
+ }
+
+ g_free(new);
+ g_strfreev(root_segments);
+ g_strfreev(find_segments);
+
+ return global_founded;
+}
+
+static gboolean
treebrowser_track_current()
{
GeanyDocument *doc = document_get_current();
gchar *path_current;
gchar **path_segments;
+ gchar *froot = NULL;
if (doc != NULL && doc->file_name != NULL && g_path_is_absolute(doc->file_name))
{
path_current = utils_get_locale_from_utf8(doc->file_name);
- path_segments = g_strsplit(path_current, G_DIR_SEPARATOR_S, 0);
-
- treebrowser_search(path_current, NULL);
/*
- * NEED TO REWORK THE CONCEPT
+ * Checking if the document is in the expanded or collapsed files
*/
+ if (! treebrowser_search(path_current, NULL))
+ {
+ /*
+ * Else we have to chroting to the document`s nearles path
+ */
+ froot = path_is_in_dir(addressbar_last_address, g_path_get_dirname(path_current));
+
+ if (froot == NULL)
+ froot = G_DIR_SEPARATOR_S;
+
+ if (utils_str_equal(froot, addressbar_last_address) != TRUE)
+ treebrowser_chroot(froot);
+
+ treebrowser_expand_to_path(froot, path_current);
+
+ g_free(froot);
+ }
+
g_strfreev(path_segments);
g_free(path_current);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1929
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1929&view=rev
Author: dmaphy
Date: 2011-02-12 17:52:18 +0000 (Sat, 12 Feb 2011)
Log Message:
-----------
GeanyGDB: add some todo items
Modified Paths:
--------------
trunk/geany-plugins/geanygdb/TODO
Modified: trunk/geany-plugins/geanygdb/TODO
===================================================================
--- trunk/geany-plugins/geanygdb/TODO 2011-02-12 15:12:13 UTC (rev 1928)
+++ trunk/geany-plugins/geanygdb/TODO 2011-02-12 17:52:18 UTC (rev 1929)
@@ -5,4 +5,6 @@
* Load the currently viewed source file. Or at least, have some quick way to
load the current file. (requested by mail)
* Make it possible to add parameters to the run command
-
+* AVR (avr-gdb) support
+* cris-gdb support
+* maybe generic support for other gdb-compatible or gdb-based debuggers
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1928
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1928&view=rev
Author: dmaphy
Date: 2011-02-12 15:12:13 +0000 (Sat, 12 Feb 2011)
Log Message:
-----------
GeanyGDB:
small README beautifications and fixes
Modified Paths:
--------------
trunk/geany-plugins/geanygdb/README
Modified: trunk/geany-plugins/geanygdb/README
===================================================================
--- trunk/geany-plugins/geanygdb/README 2011-02-12 02:27:56 UTC (rev 1927)
+++ trunk/geany-plugins/geanygdb/README 2011-02-12 15:12:13 UTC (rev 1928)
@@ -4,8 +4,10 @@
.. contents::
+
About
=====
+
GeanyGDB is a plugin for Geany which provides integrated debugging support
within Geany via the GNU Debugger (GDB).
@@ -15,21 +17,25 @@
The GNU Debugger is a source-level debugger for C, C++, Fortran, Modula 2 and
Java programs.
-It was developed and tested on openSUSE-10.3 with GDB-6.7.50. Other recent
-versions of GDB will probably work, but operating systems other than Linux-PC
-will not work, at least not without some considerable hacking.
+It was developed and tested on openSUSE-10.3 with GDB-6.7.50 by Jeff Pohlmeyer.
+Current maintainer is Dominic Hopf, he develops with current SVN versions on
+current Fedora systems. Other recent versions of GDB will probably work, but
+operating systems other than Linux-PC will not work, at least not without some
+considerable hacking.
Current Version
===============
+
GeanyGDB now is part of the Geany-Plugins project. The current version of
-Geany-Plugins is 0.18. The last stable release of GeanyGDB is 0.0.2. You are
+Geany-Plugins is 0.20. The last stable release of GeanyGDB is 0.0.2. You are
recommended to use the more current versions of GeanyGDB shipped with
Geany-Plugins.
Requirements
============
+
If you like to compile Geany-Plugins yourself, you will need the GTK (>= 2.8.0)
libraries and header files. You will also need its dependency libraries and header
files, such as Pango, Glib and ATK. All these files are available at
@@ -50,12 +56,14 @@
Installation
============
+
Please consider to compile and/or install the Geany-Plugins project, as GeanyGDB
now is part of Geany-Plugins.
Documentation
=============
+
There is no real documentation, but if you hover your mouse over the buttons
in the GeanyGDBs sidebar panel in Geany the tooltips should give you some idea
of what to do next. There are also a few "rough draft" notes below:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1925
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1925&view=rev
Author: frlan
Date: 2011-02-11 23:34:37 +0000 (Fri, 11 Feb 2011)
Log Message:
-----------
Tableconvert: Minor update of README to make it more nice. Thanks to Dominic for patch
Modified Paths:
--------------
trunk/geany-plugins/tableconvert/README
Modified: trunk/geany-plugins/tableconvert/README
===================================================================
--- trunk/geany-plugins/tableconvert/README 2011-02-11 23:12:56 UTC (rev 1924)
+++ trunk/geany-plugins/tableconvert/README 2011-02-11 23:34:37 UTC (rev 1925)
@@ -1,10 +1,12 @@
Tableconvert
------------
+============
.. contents::
+
About
-------
+-----
+
Tableconvert is a plugin which helps on converting a tabulator
separated selection into a table.
@@ -31,8 +33,10 @@
Currently the plugin is supporting HTML and LaTeX.
+
HTML
^^^^
+
When transforming HTML, line endings will be replace with <tr> and
</tr>. Occurrences of tabulator will be interpreted as column
separators and replaced by <td> and </td>.
@@ -44,6 +48,7 @@
LaTeX
^^^^^
+
In case of working with LaTeX line endings will be replaced with \\
and tabulators with &.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1924
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1924&view=rev
Author: dimitrov-adrian
Date: 2011-02-11 23:12:56 +0000 (Fri, 11 Feb 2011)
Log Message:
-----------
When Windows detected, it is creating config file (if it needen) with Explorer for external viewer
Modified Paths:
--------------
trunk/geany-plugins/treebrowser/ChangeLog
trunk/geany-plugins/treebrowser/src/treebrowser.c
Modified: trunk/geany-plugins/treebrowser/ChangeLog
===================================================================
--- trunk/geany-plugins/treebrowser/ChangeLog 2011-02-11 22:49:34 UTC (rev 1923)
+++ trunk/geany-plugins/treebrowser/ChangeLog 2011-02-11 23:12:56 UTC (rev 1924)
@@ -28,13 +28,20 @@
(DONE) Adding keybindings for renaming/deleting/refreshing
(DONE) Add option to change bars position // requested by <dmaphy>
(DONE) Add option to autorename point the newest created objects by the Treebrowser
+ * It is impossible to rename file/directory in Windows, dunno why
+ * It is impossible to delete file/directory in Windows, dunno why
-
+-------------------------------+
| Development release ChangeLog |
+-------------------------------+
+12-02-2011 Adrian Dimitrov <dimitrov.adrian(a)gmail.com>
+
+ * src/treebrowser.c
+ When Windows detected, it is creating config file (if it needen) with Explorer for external viewer
+
+
10-02-2011 Adrian Dimitrov <dimitrov.adrian(a)gmail.com>
* src/treebrowser.c
Modified: trunk/geany-plugins/treebrowser/src/treebrowser.c
===================================================================
--- trunk/geany-plugins/treebrowser/src/treebrowser.c 2011-02-11 22:49:34 UTC (rev 1923)
+++ trunk/geany-plugins/treebrowser/src/treebrowser.c 2011-02-11 23:12:56 UTC (rev 1924)
@@ -53,7 +53,11 @@
* ------------------ */
static gchar *CONFIG_FILE = NULL;
+#ifdef G_OS_WIN32
static gchar *CONFIG_OPEN_EXTERNAL_CMD = "nautilus '%d'";
+#else
+static gchar *CONFIG_OPEN_EXTERNAL_CMD = "explorer '%d'";
+#endif
static gboolean CONFIG_REVERSE_FILTER = FALSE;
static gboolean CONFIG_ONE_CLICK_CHDOC = FALSE;
static gboolean CONFIG_SHOW_HIDDEN_FILES = FALSE;
@@ -309,7 +313,6 @@
return FALSE;
}
-
static gchar*
get_default_dir()
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1923
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1923&view=rev
Author: dimitrov-adrian
Date: 2011-02-11 22:49:34 +0000 (Fri, 11 Feb 2011)
Log Message:
-----------
README update
Modified Paths:
--------------
trunk/geany-plugins/treebrowser/README
Modified: trunk/geany-plugins/treebrowser/README
===================================================================
--- trunk/geany-plugins/treebrowser/README 2011-02-11 22:39:15 UTC (rev 1922)
+++ trunk/geany-plugins/treebrowser/README 2011-02-11 22:49:34 UTC (rev 1923)
@@ -3,18 +3,18 @@
TreeBrowser plugin
==================
+.. image:: http://img43.imageshack.us/img43/9053/screenshotsmallq.png
+ :width: 400
+ :alt: treebrowser plugin
+ :align: right
+ :target: http://img828.imageshack.us/img828/1351/screenshot1fq.png
+
.. contents::
About
=====
-.. image:: http://img43.imageshack.us/img43/9053/screenshotsmallq.png
- :width: 400
- :alt: treebrowser plugin
- :align: right
- :target: http://img828.imageshack.us/img828/1351/screenshot1fq.png
-
The TreeBrowser plugin for Geany provides an alternate way to browse through
your files. It displays files and directories in a tree view and has more
features than the file browser plugin delivered with Geany itself.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.