Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Issue #7 - Replaced g_file_get_uri() with g_file_get_parse_name() for…

… unicode support in calls to ctags.
  • Loading branch information...
commit 98e02c14bed20b4ccc8ad98fcfdee0bb9919d609 1 parent c3973f6
@MicahCarrick MicahCarrick authored
View
6 README.markdown
@@ -4,7 +4,6 @@ Gedit Source Code Browser
A source code class and function browser plugin for Gedit 3.
* Author: Micah Carrick
-* Version: 3.0.2
This plugin will add a new tab to the side pane in the Gedit text editor which
shows symbols (functions, classes, variables, etc.) for the active document.
@@ -65,6 +64,11 @@ Screenshots
Changes
-------
+**Vesion 3.0.3**
+
+* Issue #7 - Replaced g_file_get_uri() with g_file_get_parse_name() for unicode
+ support in calls to ctags.
+
**Vesion 3.0.2**
* Checks if image exists before trying to instantiate GdkPixbuf
View
2  sourcecodebrowser.plugin
@@ -7,4 +7,4 @@ Description=A source code class and function browser for Gedit 3.
Authors=Micah Carrick <micah@quixotix.com>
Copyright=Copyright © 2011 Micah Carrick
Website=https://github.com/Quixotix/gedit-source-code-browser
-Version=3.0.2
+Version=3.0.3
View
3  sourcecodebrowser/ctags.py
@@ -85,7 +85,8 @@ def parse(self, command, executable=None):
Parse ctags tags from the output of a ctags command. For example:
ctags -n --fields=fiKmnsSzt -f - some_file.php
"""
- args = [arg.replace('%20', ' ') for arg in shlex.split(command)]
+ #args = [arg.replace('%20', ' ') for arg in shlex.split(command)]
+ args = shlex.split(command)
p = subprocess.Popen(args, 0, shell=False, stdout=subprocess.PIPE, executable=executable)
symbols = self._parse_text(p.communicate()[0])
View
3  sourcecodebrowser/plugin.py
@@ -389,7 +389,8 @@ def _load_active_document_symbols(self):
self._log.debug("Loading %s...", uri)
if uri is not None:
if uri[:7] == "file://":
- filename = uri[7:]
+ # use get_parse_name() to get path in UTF-8
+ filename = location.get_parse_name()
self._sourcetree.parse_file(filename, uri)
elif self.load_remote_files:
basename = location.get_basename()
Please sign in to comment.
Something went wrong with that request. Please try again.