-
Notifications
You must be signed in to change notification settings - Fork 9
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
enter input mode when press ctrl-[xvt] #10
Conversation
thanks for your contribution! But I'm not sure I understand what it does exactly. Could you explain to me what changes in behavior? Sorry, I'm not an expert on vim internals by any means :) |
Hi @fisadev , Sorry for the late reply. In most cases, I just want to execute command without any arguments, then I could just set However, in some cases, I may also want to execute vim command with arguments. With this pull request:
Thanks! |
Hi @fisadev , Is there any suggestion for this PR? |
Just to be sure, this won't break the default behavior when not using |
autoload/ctrlp/cmdpalette.vim
Outdated
call feedkeys("\<CR>", 'n') | ||
endif | ||
call remove(s:cmdpalette_commands, index(s:cmdpalette_commands, a:str)) | ||
call insert(s:cmdpalette_commands, a:str) | ||
if a:mode != 'e' | ||
call feedkeys(" ", 'n') | ||
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small detail: please change these tabs to spaces ;) (using tabs makes it look with a different indentation level depending on the tool)
(Also, sorry for the delays, having some very busy weeks) |
Hi @fisadev , Have updated the code to use whitespace instead of tab. For your question, the default behavior is not changed when with Thanks! |
Merged! Thanks a lot for the work done :) |
Provide a way to enter input mode even with
let g:ctrlp_cmdpalette_execute = 1
set.