-
Notifications
You must be signed in to change notification settings - Fork 17
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
Added editor subcommand. #300
Added editor subcommand. #300
Conversation
@br1tney5pear5 sounds great. Could you please add some tests that cover this new feature, that run as part of the |
@liquidaty 4 basic test-sheet-subcommand were added |
change TEST_INIT "echo -e" to "echo" due to misbehavior on macos
revert 'echo -e'; anyway this should be superseded by latest main update using printf
This PR adds editor subcommand, subcommad is just another proc triggered by keybinding which then parses user input and executes the procedure user specified, e.g.
:open
or:filter
. All named procedures are accessible from subcommand.Furthermore args can be provided on invocation like
:open data/fixed.csv
. Open and filter procedures were adapted to only prompt user for input if the argument wasn't provided.Lexer for the subcommand is smart enough to recognise strings with spaces and escapes as single tokes so e.g. this is completely fine
:open "data/insane \" : file \" name.csv"