Last active
May 2, 2021 19:49
-
-
Save tbnorth/cf5cf528ef1ba14e3dae647cef1eaf0e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # "compound 'compound .compound but not <spac>compound or compounds | |
| cexpr system("find PATH -name \\*.py | xargs grep -n [.\\'\\\"]compound\\\\b") | |
| # get list of files from a broken session | |
| sed -n '/^cd / p; /^badd / {s/^badd [^ ]* //; H}; $ {x; s/\n/ \\\n/g; p}' /path/to/sessionfile.vim | |
| # some paths will be relative to a folder, this prints the command to cd to the folder first |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment