Add dynamic sub directory scan for project stuff with ".tmux-scan" to include sub directory and ".tmux-exclude" to ignore directory as project#1
Conversation
… include sub directory and ".tmux-exclude" to ignore directory as project
ExampleHere is my lab project structure: Here what fzf give me : The |
|
You could probably achieve something similar by just using I just used |
Initially, I also thought I could do this scan using only My issue is that The solution would seem to be limiting So a manual exploration of each directory to scan with my |
|
However, if I were to make a self-critique of my PR, I think the part about excluding certain directories with For now, my implementation, which was sufficient for my personal use, relies on first determining the list of directories to skip, then generating a hellish regex with only the paths that need to be ignored, and then passing everything through So this code should probably be replaced before this PR is merged (or not). I will probably look into this on Sunday, but before that, I'm mainly interested in whether @ThePrimeagen is interested in my concept of files that recursive sub-scan with |
…ch_directories` array
This is an early hack of my personal edit of tmux-sessionizer.
I did some "voodoo magic" with bash arrays a long time ago, and I know it's not ideal.
This implementation performs a recursive search to create a list when
.tmux-scanis present and will ignore.tmux-excludein the search.I'll write a proper PR message later since I still have work to do, but I thought you might be interested in something like this.