Comments (6)
Hey Jamie,
Sublime Text has some... issues... regarding mouse handling for plugins. If you look in the closed issues list for this plugin, you'll see some of the background for my statement. Anyway, can you please try clicking on the line you want to go to (or arrowing to it) and then pressing "Enter" and see if it takes you to the file and line you're trying to navigate to?
Thanks!
from cscopesublime.
Enter key works, it looks like double click is supposed to work but it doesn't (at least in linux, ubuntu 12.04 ST2.0.1 build 2217)
from cscopesublime.
Hopefully plugins will be able to support double clicks in ST3. I hope.
from cscopesublime.
It took me a while just to figure out I could click a filename and hit the enter key. Seems missing from the README. I thought I needed another plug-in to be able to go to the files.
from cscopesublime.
Hi, guys, I add some code at the end of cscope.py file. And modify the mousemap file in the User dir.
This work for me. Guys could try it.
Here is the code:
class CustomCscopeVisiter(sublime_plugin.TextCommand):
def run(self, edit):
if self.view.name().startswith("Cscope results"):
self.view.run_command("cscope_visiter")
return
for sel in self.view.sel():
if sel.empty():
sel = self.view.word(sel)
self.view.sel().clear()
self.view.sel().add(sel)
self.view.show(sel)
mousemap:
{"button": "button1", "count": 2, "modifiers": [], "command": "custom_cscope_visiter"},
Link:
cscope.py:
https://github.com/redhat008/sublimepacksync/blob/master/Packages/Cscope/cscope.py
from cscopesublime.
I just checked and ST3 still does not support this. The problem is that there's no context settings for mouse bindings. So one and only one plugin can override the double-click handler like @redhat008 did above, and if more than one plugin does, it's a crap-shoot as to which plugin actually gets the event. There's nothing we can do here. We're doing the best we can by navigating to cscope results via keyboard key.
from cscopesublime.
Related Issues (20)
- Add an option to create/refresh Cscope database HOT 3
- Display Cscope result in the other column in 2-column layout HOT 3
- Cscope not working
- request: Building cscope.out from sublime HOT 1
- Cscope ERROR: ['cscope', '-dL', '-f', 'D:\\u\\cscope.out', '-1Set_TTT_k'] failed! HOT 6
- OSX10.11 sublime-text3 install failed, can not find Cscope.sublime-settings HOT 5
- CscopeSublime not working in ST2 HOT 6
- Cscope: "Rebuild database" does not create cscope.out if one does not already exist HOT 8
- The search results doesn't support jumping to the matches. HOT 1
- in search window can not go to definition if the file in not opened in sublime. HOT 4
- Cscope ERROR: cscope binary "/usr/local/bin/" not found! HOT 14
- TypeError: 'NoneType' object is not subscriptable HOT 5
- All the previous Cscope results files open for every new lookup HOT 5
- Database build and rebuild should use 2 different commands HOT 1
- how to create cscope.out HOT 2
- How to change the hot key in sublime text3? HOT 3
- cscope error on ST3 " 'ascii' codec can't decode byte 0xe1 " with OSX10.12 HOT 11
- Conflict in default key bindings of Sublime Text 3 & CscopeSublime
- How can I use different database_location for different project?
- Search for symbol/definition doesn't show any results
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cscopesublime.