-
Notifications
You must be signed in to change notification settings - Fork 78
Feature: Added dynamic addition and removal of filepaths using FZF #7
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
base: master
Are you sure you want to change the base?
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
tmux-sessionizer
Outdated
| @@ -1,4 +1,53 @@ | |||
| #!/usr/bin/env bash | |||
| #/usr/bin/env bash | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct shebang else this will not run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
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.