Skip to content
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

Fussy match load-session #59

Open
leesei opened this issue Jun 16, 2015 · 2 comments
Open

Fussy match load-session #59

leesei opened this issue Jun 16, 2015 · 2 comments

Comments

@leesei
Copy link
Contributor

leesei commented Jun 16, 2015

If we match the string with available sessions and only one match is found, we can just load the layout.

$ tmuxifier ls
projectA
projectB
wip@server

$ tmuxifier s B  # projectB is loaded

$ tmuxifier s wip  # wip@server is loaded

$ tmuxifier s project # error
"project" may mean one of the following:
projectA
projectB
@jimeh
Copy link
Owner

jimeh commented Jun 16, 2015

Not a bad idea. It would need to play nice with the ability to load layout files from the working directory, but that shouldn't be difficult :)

@leesei
Copy link
Contributor Author

leesei commented Sep 10, 2019

Well, I've been trying out fzf: A command-line fuzzy finder and it can support the feature I wanted.

# on CLI
tmuxifier s  $(tmuxifier ls | fzf)
# as function (in `.bashrc`)
tmfls() {
	session=$(tmuxifier ls | fzf)
	[ ! -z $session ] && tmuxifier s $session
}

Shall we add these to README?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants