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

Assume desk name from current directory #42

Open
8191 opened this issue Nov 21, 2015 · 3 comments
Open

Assume desk name from current directory #42

8191 opened this issue Nov 21, 2015 · 3 comments

Comments

@8191
Copy link

8191 commented Nov 21, 2015

It would be nice if desk would assume the name of the desk to load from the cwd if no desk name was given, e.g:

$ cd ~/myproject
$ desk .
$ desk

myproject
desk of my project
...
@jamesob
Copy link
Owner

jamesob commented Nov 24, 2015

Definitely thinking about how to best enable something like this. Expect something in the next few days.

@cmbankester
Copy link
Contributor

I think this is a cool idea, but assuming the desk to load might be somewhat limiting, and possibly a bit error-prone. What if we simply add a way to tie a directory to a specific desk? It seems we could either do so from within the directory itself (i.e. with a .desk file containing the name of the desk) or from within the deskfile (which I do not recommend).

I think using a .desk file within the directory would be the simplest to implement, and seems more logical. This also opens us up to adding a set subcommand, something like desk set [deskname] [directory] (e.g. desk set foobar . to tie the current directory to the foobar desk).

@8191
Copy link
Author

8191 commented Dec 13, 2015

Sounds like a plan... Do you think of a specific content of the .desk file (e.g. the desk to load) or just the presence of the file implies that desk is loading the desk with the same name of the directory?

I guess first option is not really intuitive and also - as mentioned by you - limiting...

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

3 participants