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

Raise errors for confusingly close & wrong patterns in args #161

Open
poetaman opened this issue Jan 31, 2021 · 0 comments
Open

Raise errors for confusingly close & wrong patterns in args #161

poetaman opened this issue Jan 31, 2021 · 0 comments

Comments

@poetaman
Copy link

poetaman commented Jan 31, 2021

nvr --remotesend ":bd<cr>" opens a file named ":bd<cr>", and nvr --remote-send ":bd<cr>" deletes buffer in the focussed window.

The former was a typo that I made few couple of times already, while actually wanting to do the latter. And the difference between them is an inconspicuous hyphen. It clutters the session with more buffers, would be better to rather raise an error.

Another example:

nvr --weird "weird.txt" creates two buffers for two new files --weird and weird.txt without raising any error that weird is not a legit option.

@poetaman poetaman changed the title Raise errors for confusingly close wrong patterns in args Raise errors for confusingly close & wrong patterns in args Jan 31, 2021
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

1 participant