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

[feature request] Configuration setting for download directory #83

Closed
xxxserxxx opened this issue Apr 28, 2021 · 3 comments
Closed

[feature request] Configuration setting for download directory #83

xxxserxxx opened this issue Apr 28, 2021 · 3 comments

Comments

@xxxserxxx
Copy link
Contributor

Attachments are currently saved in whichever directory bower was started from. It'd be nice to have a configuration option to set the default save-to directory.

@wangp
Copy link
Owner

wangp commented May 1, 2021

Perhaps it can go in the [ui] section, e.g. ui.default_save_directory?

The first save command could use that for the suggested path, and subsequent save commands use the same directory as the previous save path (which is the current behaviour). If you want to write to the current directory, you would need to delete the directory part.

On the other hand, instead of adding a config option, you could just change the current directory before starting bower.

@xxxserxxx
Copy link
Contributor Author

I do like the current "use previous directory" function, and yes, chdir to the downloads directory is a work-around; I could alias bower out to do this instead. While I believe this is a common configuration feature in most applications that support downloading, I will not be offended if you close this with "will not implement."

@seifferth
Copy link
Contributor

Just a quick thought from my side: I believe that specifying the default output directory is a lot less common in tui and cli applications than it is in gui applications. Probably because there is no natural translation of the current working directory once you leave the terminal. (How would you change the current working directory of a desktop environment?)

Consequently, I like the current behaviour better, but if default_save_directory is an opt-in feature, it wouldn't affect me, of course.

@wangp wangp closed this as completed in cee687b May 7, 2022
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