-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Possible to display available text objects? #14
Comments
Good to know emac-which-key's operator support. It would be nice for vim-which-key to have this feature as well, but I don't know when I'll have time to work on it, just a little busy recently :(. |
I'd be happy to help (once I have time myself; I'm also quite busy recently), but my Vimscript knowledge is pretty weak... |
Update: Thanks to the dynamic update, this is now sort of possible if you make a lot of omap a :<c-u>WhichKey 'a'<CR> |
Could you elaborate ? Other awesomes additions can be the default bindings mappings, It is implemented in SpaceVim so you can see which-key on g or z keypress. I saw that Spacevim isnt using this plugin directly tho |
Well, I don't know much about SpaceVim but I knew its code is also based on https://github.com/hecal3/vim-leader-guide like vim-which-key, see the credit and introduction section of vim-which-key README. I think the right direction is to checkout |
Im also quite buzy lately, I did a quick ripoff of the Spacevim bindings, there is a lot of code repetetion a factoring that can be done but here is what I have : first create a new
It should be done by extracting I am pretty convinced that this kind of tooltips would greatly improve vim onboarding and features discoveries. This is what has been done partialy for kakoune (try it) What do you think ? |
Well, I think the function is good, especially for the text objects part, but I'm not fond of the way of implementation. Currently I'm working on vim-clap in my most free time, I'll definitely look into this and see if there is a better solution when I get another free time. P.S. registers with preview will also be supported in vim-clap :(. |
I dont really like how its implemented either. I tryed to fiddle around for [ { commands but didnt found a way to make them work. |
Is it now possible to set whichkey for the some default key-bindings in vim? |
OS: Arch Linux
Vim: Neovim 0.3.1
If you think it's a bug, please provide a minimal vimrc to reproduce:
Problem Description
First off, thank you for the great plugin/substantial improvement on
leader-guide
!One of the nicest parts (for me) about
which-key
withevil
in Emacs is the display of available text objects when in operator-pending mode. For example, if I typed
and wait, a menu of the text objects and movements I could delete appears; if I continue todi
, the menu shows the objects I could delete inside of.Is this possible to set up with
vim-which-key
? I imagine one could try manually mapping all of the operators and text objects/movements tovim-which-key
dictionaries, but that seems very tedious and brittle. Is there a better/easier way? Thanks!The text was updated successfully, but these errors were encountered: