hwms / jrfonseca

Automatically exported from code.google.com/p/jrfonseca
0 stars 0 forks source link

[xdot] add support for text based node search #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After using xdot for a while I've been missing the ability to search/focus 
nodes by text search for big dot files.
So I've made some quick changes to get it working, See the patch below.

HTH

Original issue reported on code.google.com by saoret.one on 3 Mar 2012 at 1:52

Attachments:

GoogleCodeExporter commented 9 years ago
I made some modifications to your awesome text-search.
It now matches sub-strings.
When the searched text matches more than one node, all matching nodes are 
highlighted.
When there is just one match, pressing the return-key centers the node.
And I moved the search box into the toolbar.

Original comment by ludw1g.m...@gmail.com on 14 Sep 2012 at 5:19

Attachments:

GoogleCodeExporter commented 9 years ago
Nice, I've added a "F" keyboard shortcut to reach easily the search box.
Best,

         if event.keyval == gtk.keysyms.r:
             self.reload()
             return True
+        if event.keyval == gtk.keysyms.f:
+            win = widget.get_toplevel()
+            find_toolitem = win.uimanager.get_widget('/ToolBar/Find')
+            textentry = find_toolitem.get_children()
+            win.set_focus(textentry[0])
+            return True

Original comment by saoret.one on 19 Sep 2012 at 8:44

Attachments:

GoogleCodeExporter commented 9 years ago
Anyone of you guys maintains a fork on github? Mine is 
https://github.com/pfalcon/xdot.py/commits/pfalcon just in case (see Issue 
#79). It would be nice to have a well-maintained fork while the author is busy 
with other stuff.

Original comment by pmis...@gmail.com on 14 Feb 2013 at 8:04

GoogleCodeExporter commented 9 years ago
I pushed these changes to my branch https://github.com/pfalcon/xdot.py . Thanks.

Original comment by pmis...@gmail.com on 14 Feb 2013 at 10:10

GoogleCodeExporter commented 9 years ago

Original comment by Jose.R.F...@gmail.com on 8 Apr 2013 at 5:38

GoogleCodeExporter commented 9 years ago
I've cherrypicked this changes from pfalcon's git repos.

Thanks guys. And sorry for not being able to look at xdot for so long.

Original comment by Jose.R.F...@gmail.com on 12 May 2013 at 8:07

GoogleCodeExporter commented 9 years ago

Original comment by Jose.R.F...@gmail.com on 12 May 2013 at 8:09

GoogleCodeExporter commented 9 years ago
no worries, and thanks a lot for the nice tool XDot is.

BR

Original comment by saoret.one on 15 May 2013 at 8:14