Menu

#5 Current text shortcut for vim plugin

open-accepted
1
2008-04-17
2007-09-08
No

Kelp accepts an ID as a command-line argument, using a leading 'at' sign ('@') to distinguish the argument type.

Vim provides the '*' command as one-key method for selecting the text under the cursor as a search string. Other methods of specifying a search string are also available. Once selected, it seems that the string would be a natural choice to an annotation lookup. In other words, a kelp ID.

The request would require a modification to the kelp vim plugin to treat a naked '@' in the kelp call as an ID consisting of the current search string. For example,

:Kelp _source.c @

would search for annotation of the module source.c with an ID that matches the current search string.

When combined with Feature Request 1790819, the command could be further abbreviated to:

:Kelp _ @

No change will be required in kelp - the plugin will translate the annotation request.

[If this feature request is accepted, it might prove useful to add the same feature in the Eclipse plugin.]

Dave Harris

Discussion

  • Anonymous

    Anonymous - 2007-09-08
    • labels: --> Interface Improvements
    • assigned_to: nobody --> edcdave
    • status: open --> open-accepted
     
  • Anonymous

    Anonymous - 2007-09-08

    Logged In: YES
    user_id=1159546
    Originator: NO

    Would it be possible to associate this last combination to a keycombination? like ctags does :ta currentag to CTRL-]?

     
  • Ian Appleby

    Ian Appleby - 2007-09-09

    Logged In: YES
    user_id=1877675
    Originator: NO

    Should be possible for the second version of the eclipse plug-in. I also have some thoughts on extension of this idea, but I'll post them elsewhere, as they probably don't below on this FR.

     
  • Anonymous

    Anonymous - 2008-04-17
    • priority: 5 --> 1
     

Log in to post a comment.