Feature: Added dynamic addition and removal of filepaths using FZF#7
Feature: Added dynamic addition and removal of filepaths using FZF#7johnmarco123 wants to merge 17 commits into
Conversation
… of tmux-sessionizer
…zer in the readme
…g slash and one did not.
454ab98 to
dc632ff
Compare
|
Doing a big refactor, to make this easier to use and making it so you never have to enter a file to edit contents |
|
Should be good for usage now, add directories to your list by using tmux-sessionizer -a PATH_GOES_HERE. You can also add the word "all" afterwards like so: tmux-sessionizer -a PATH_GOES_HERE all which would be equivelant to original tmux-sessionizer "find PATH -type d -maxdepth 1". By default it only adds the exact directory you provide it unless provided the extra "all" option after your directory. It also supports relative paths such as '~', '.', and absolute paths '/'. It will automatically expand them and save them to your list |
|
The filepaths are stored in two separate files, basic paths are stored in .tmux-sessionizer.txt, and the "all" paths are stored in .tmux-sessionizer_wild.txt. I removed its capability to accept standard in for now as it would of been a pain to re-create after the refactor. |
…one from regular add and one from the "all" option add) that you only see one when picking a path
|
You can add the following in ur tmux config to quickly add, delete, and manage your tmux-sessionizer list files: |
…y exist, and change there permissions
… this will work now lol
| @@ -1,4 +1,53 @@ | |||
| #!/usr/bin/env bash | |||
| #/usr/bin/env bash | |||
There was a problem hiding this comment.
correct shebang else this will not run.
added missing shebang
|
My current tmux conf: bind f run-shell "tmux neww tmux-sessionizer" The last command when run will take you to where you originally opened your tmux session, so if you deviate from your home path, you can simply return there |
|
Correction, don't use bind h as that moves panes in a vim style, rebind it to b or something |
|
@ThePrimeagen Kindly pinging to merge mr prime |
Added the following flags:
tmux-sessionizer -add, -a
tmux-sessionizer -delete, -d
tmux-sessionizer -list -l
It also now has dynamic addition and removal of filepaths using stdin and ensures no duplicates are added. All of this is saved in the users HOME under tmux-sessionizer.txt, but this path can be changed.