-
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
Open
johnmarco123
wants to merge
17
commits into
ThePrimeagen:master
Choose a base branch
from
johnmarco123:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d6e2575
added dynamic addition and removal of filepaths, as well as basic usa…
johnmarco123 a71f9b9
Can now have commands that dynamically populate the list on each call…
johnmarco123 0feb51d
oops forgot to update a comment
johnmarco123 9aad501
Added some explanation of how commands can be used with tmux-sessioni…
johnmarco123 e227b2a
fixed bug where you could add the same directory if one had a trailin…
johnmarco123 6581aaa
updated comment explaining the commands in tmux-sessionizer
johnmarco123 b2d2c55
prevention of duplicate entries from commands was added
johnmarco123 bb231ec
enabled --cycle mode in all fzf for tmux-sessionizer
johnmarco123 dc632ff
added SAFE COPY
johnmarco123 3465f75
oops had a random file...
johnmarco123 9503a6d
rewrite
johnmarco123 2f20a54
dynamic tmux sessionizer version 1
johnmarco123 0d15180
updated todo list
johnmarco123 fb6158a
added a small awk command so that if you have two of the same path, (…
johnmarco123 6c527af
made part of the script create the files needed if they do not alread…
johnmarco123 2676981
oops, that actually did not work as i overwrote the file later on...,…
johnmarco123 5e427b4
Update tmux-sessionizer
johnmarco123 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,46 @@ | ||
| ## tmux sessionizer | ||
| # tmux sessionizer | ||
| its a script that does everything awesome at all times | ||
|
|
||
| ## Usage | ||
| ## Basic usage | ||
| ```bash | ||
| tmux-sessionizer [<partial name of session>] | ||
| ``` | ||
|
|
||
| By default, tmux-sessionizer holds its state in .tmux-sessionizer.txt in your | ||
| $HOME directory, but this can be changed within the top of tmux-sessionizer | ||
| itself | ||
|
|
||
| ## Options | ||
| -a, -add | ||
| Adds full filepaths to your tmux-sessionizer list via stdin or | ||
| interactive mode. It will automatically reject duplicates, and will | ||
| only accept valid absolute filepaths to folders that exist. | ||
|
|
||
| -d, -delete | ||
| Opens a multi-select fzf of your current tmux-sessionizer list which | ||
| can be used to delete files in your list by selecting either one file | ||
| to delete using the enter key, or multiple files using tab to select | ||
| multiple files and then enter to delete those files. CTRL-C to exit | ||
|
|
||
| -l, -list | ||
| Lists the contents of the tmux-sessionizer list. | ||
|
|
||
| ### Example commands | ||
| Add all directories within the current working directory to your list. | ||
| ```bash | ||
| find $(pwd) -maxdepth 1 -type d | tmux-sessionizer -a | ||
| ``` | ||
|
|
||
| Enter fzf and delete folders in your tmux-sessionizer list by selecting them | ||
| with tab and then clicking enter | ||
| ```bash | ||
| tmux-sessionizer -d | ||
| ``` | ||
|
|
||
| List all the directories in your tmux-sessionizer list | ||
| ```bash | ||
| tmux-sessionizer -l | ||
| ``` | ||
|
|
||
| if you execute tmux-sessionizer without any parameters it will assume FZF and | ||
| try to fuzzy find over a set of directories. | ||
|
|
||
| TODO: waiting on that directory list to be dynamic :) (go a head make pr if you want) |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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