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

Prevent nested session #68

Open
aratno opened this issue May 25, 2016 · 3 comments
Open

Prevent nested session #68

aratno opened this issue May 25, 2016 · 3 comments

Comments

@aratno
Copy link

aratno commented May 25, 2016

I mentioned this in a comment on #67, but I think nested sessions should be prevented. For example, if I run desk . project-one then try to run desk . project-two, desk should ask if I want to leave the first session to enter the next or prevent me from nesting at all.

@cmbankester
Copy link
Contributor

@aratno Why do you want it to prevent nesting, exactly? I actually find the current nesting functionality convenient. E.g., when jumping into a desk to do something quick / transient, it's convenient to be able to exit back into my previous, longer-term desk.

Could you expand on your use case a bit?

@tzhouhc
Copy link

tzhouhc commented Mar 9, 2017

Speaking of this... Maybe a environmental variable called DESK_STACK could be nice.

e.g. first desk 'work', DESK_STACK is 'work'; from work I start desk 'reddit', then DESK_STACK becomes 'work:reddit'. This way if I do start a stack of desks, I will have the means to keep track of them with prompt or whatever.

@afterthought
Copy link

What about a "desk switch" command. I'm used to doing that with homebrew to switch package versions.

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

No branches or pull requests

4 participants