Code Monkey home page Code Monkey logo

Comments (9)

leoliu avatar leoliu commented on May 27, 2024

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.

jamienicol avatar jamienicol commented on May 27, 2024

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.

leoliu avatar leoliu commented on May 27, 2024

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.

jamienicol avatar jamienicol commented on May 27, 2024

It works perfectly! Thank you so much.

Jamie

from ggtags.

jamienicol avatar jamienicol commented on May 27, 2024

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.

leoliu avatar leoliu commented on May 27, 2024

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.

jamienicol avatar jamienicol commented on May 27, 2024

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.

leoliu avatar leoliu commented on May 27, 2024

Glad to help and thanks for the feedback.

from ggtags.

leoliu avatar leoliu commented on May 27, 2024

The lighter can now be disabled by setting ggtags-navigation-mode-lighter to nil since f378376

from ggtags.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.