Comments (9)
Hi jamienicol,
Thank you for the report.
The point of the navigation mode is allowing a few keys in the compilation mode directly accessible without moving to the compilation buffer i.e. ggtags-global. Are you manually switching to that buffer to choose matches? In this case the navigation mode might be annoying indeed. Let me know you workflow so that we can fix it to accommodate more use patterns.
Cheers,
Leo
from ggtags.
Hi! thanks for the response. my workflow is something like this:
- If there are only a few matches I will usually not change buffer. I'll use compilation mode's M-g n and M-g p to navigate through the matches, I believe these work as long as there is a compilation-mode buffer visible, regardless of which buffer you are in. I suppose navigation mode's M-n and M-p are slightly easier to press, but I'm used to the compilation mode bindings (and use them regularly with grep).
- If there are many matches I will usually switch to the results buffer to look for likely matches.
- Here, I'm used to using M-n/M-p to move the cursor without selecting and jumping to another match.
- If I find a likely match I want to press enter (or C-m) to jump to it, but instead that will close the results buffer.
- I would usually close the buffer by switching to it and pressing q, or just switching to something else.
It may well be possible for navigation mode to be adapted to suit my workflow, but I'd still have a concern that navigating ggtag matches is different than navigating grep matches. For me they are conceptually two very similar tasks, I'm not sure my wee brain can handle navigating them differently.
Cheers.
from ggtags.
Hi jamienicol,
You can now disable the navigation key bindings by setting ggtags-suppress-navigation-keys
to t
. Could you try it out and send me any comments? Thanks.
Leo
from ggtags.
It works perfectly! Thank you so much.
Jamie
from ggtags.
One wee thing I've noticed actually:
With my workflow there's no specific point at which I exit navigation-mode. Enter now does what it does in regular compilation mode, so I'll probably just switch away from the results buffer at some point rather than press enter to explicitly exit it. This leaves navigation-mode enabled indefinitely.
The only side-effect I've encountered of this is that the "GG[x/y]" remains in my modeline forever. To be honest, I don't ever find this useful at all and it just takes up space in my modeline, even more so when I've finish searching through the results. Is there any way to hide this?
Out of interest is there a reason why you chose an option to disable the keys, rather than an option to simply not enable navigation mode at all? Are there any other side-effects of navigation mode, other than the keys and the modeline?
from ggtags.
If you kill the ggtags-global buffer the mode is off. Or you can turn it off completely by using this snippet:
(eval-after-load 'ggtags
'(defalias 'ggtags-navigation-mode 'ignore))
from ggtags.
perfect. thank you for being so helpful and thanks again for ggtags, it's
great.
On 22 Mar 2014 15:27, "Leo Liu" [email protected] wrote:
If you kill the ggtags-global buffer the mode is off. Or you can turn
it off completely by using this snippet:(eval-after-load 'ggtags
'(defalias 'ggtags-navigation-mode 'ignore))Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-38354365
.
from ggtags.
Glad to help and thanks for the feedback.
from ggtags.
The lighter can now be disabled by setting ggtags-navigation-mode-lighter
to nil since f378376
from ggtags.
Related Issues (20)
- Tag navigation and compilation mode HOT 1
- How to use this gtags-cscope feature from ggtags.el
- CPU is pinned to 100%, with excessive gtags processes spawned HOT 6
- ‘global’ non-zero exit: sh: global: command not found HOT 2
- POSIX realpath required
- wrong-type-argument error on compilation-auto-jump timer
- ggtags causes company-capf to fail when GTAGS doesn't exist
- ggtags-fontify-code conflicts with hl-line-mode HOT 1
- ggtags doesn't work with xref in Emacs 27.2 since latest update HOT 3
- GTAGSLIBPATH not searched HOT 1
- `ggtags-fontify-code` should be called optionally HOT 2
- With tramp: Error running timer ‘compilation-auto-jump’: (wrong-type-argument stringp nil) HOT 5
- 'xref-find-definitions' problem in symbolic link directory HOT 6
- xref-pop-marker-stack doesn't return to previous location HOT 1
- Use default gtags backend unless GTAGSLABEL is set
- Enhancement: Use Emacs' sqlite API (built-in or via module)
- Make integration with xref and capf user configurable
- Compile warnings with latest emacs master
- final message interpreted as a match HOT 2
- Support for --literal argument
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 ggtags.