Skip to content
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

Feature request: input command #31

Open
pepa65 opened this issue Nov 2, 2015 · 2 comments
Open

Feature request: input command #31

pepa65 opened this issue Nov 2, 2015 · 2 comments

Comments

@pepa65
Copy link

pepa65 commented Nov 2, 2015

Fantastic editor, great potential!
I would like to do a replace without having to go into command mode, like is possible in search mode. I was wondering if, instead of creating new modes, this could be worked around by having an "input" command, or some sort of parameter substitution, so that I could bind a key to "replace ^input ^input". This would also make other things possible.

@craigbarnes
Copy link
Contributor

craigbarnes commented Jul 22, 2017

Do you know about command?

I have a key binding that looks like:

bind ^R 'command replace\ '

...so when I hit Ctrl+R, it opens up command mode with replace already typed in and I just have to enter the arguments and hit Enter. For my purposes, it seems almost the same thing as an input prompt.

@pepa65
Copy link
Author

pepa65 commented Jul 22, 2017

Thanks, I guess that would be the workaround. But because of the huge scripting opportunities once we have ^input, I'd still like to have it. But I'll make a similar keybinding here for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants