Improve ergonomics updating positional arguments #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Idea: Make litblock take file or - for stdin as first positional argument, or make it take --file flag, and make pattern default.
Perhaps: Default actions be to show help, list listblocks if file in position 1, then pattern
existing
this was meant to work, possibly break into separate issue, but its annoying to have to look up the man page, it is expected that would work when using
'<,'>w !cat | sh -in vim, which brings up some design considerations.Need to consider 'fd . -t f | xargs -0 -d\n litblock "$pattern"' and the stdin
:w !cat | sh -in vim use cases. And using likelitblock "$FILE"i guess we use xargs to pipe filenames, and stdin...Note: Need to figure out how to clearly state what I mean above, in a future edit.
the goal should be to make it so the variable length argument is at the end, so I can use visual block selection to use
cwto edit multiple lines easily in documents.So using
-for stdin might be best so I can usebut this will require considering the environment variable process. So lets see how I go, if i can make it use both, maybe --file=... might be needed if I get the env var method to work better
Heres the literate markdown section for context (indented to make literate block readable)