Summary: | WISH: Allow to define a standard-folder other than /home | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Michael <Mailinglisten> |
Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | lassi.vaatamoinen, Mailinglisten, waqar.17a |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Michael
2024-07-12 06:36:13 UTC
Somehow I don't see this option getting added to Kate. What you can try is: - Open a file in your desired folder /mnt/Data - Create a new file and save it -----> Save dialog will show the path of last selected file which should be /mnt/Data Thank you! (In reply to Waqar Ahmed from comment #1) > What you can try is: ... This works, but only for the actual session. If I start KATE from scratch and write some text, saving again offers /home/myname ... (In reply to Waqar Ahmed from comment #1) > Somehow I don't see this option getting added to Kate. I don't see a point in adding configuration clutter. But how about a commandline option? So, if a user wants to set a default saving URL, that would be set via some command line flag. (Or maybe just if a directory is given as a startup URL: 'kate /mnt/myDir/' and the type is checked to be a directory, use that as a default save location for files.) I'd be in favor of the first option. Say, 'kate -d /mnt/myDir/' Thank you. What does the option -d 'kate -d /mnt/myDir/' mean? '$ man kate' does not offer this value. And: Please keep in mind, that I would like to define the starting folder for new files, which - in my case - is always /mnt/Data and never /home/myname. But new files may be stored in /mnt/Data/Private or /mnt/Data/Job or ... (In reply to Michael from comment #4) >What does the option -d > 'kate -d /mnt/myDir/' > mean? '$ man kate' does not offer this value. No it does not, please note I am replying Waqar's comment. This is a wishlist item and I am just proposing solutions. (In reply to Michael from comment #4) > And: Please keep in mind, that I would like to define the starting folder > for new files, which - in my case - > is always /mnt/Data and never /home/myname. > But new files may be stored in /mnt/Data/Private or /mnt/Data/Job or ... Well, my proposal would mean that you could start Kate with 'kate -d /mnt/Data' and when you save files, it would always start offering at /mnt/Data. Of course you then need to go to a proper subdirectory yourself. And then you could define a Kate desktop launcher that launches 'kate -d /mnt/Data' to get you there by default. > kate -d /mnt/Data
Set the working directory beforehand just:
cd /mnt/Data && kate
That will do what you want.
(In reply to Waqar Ahmed from comment #7) > cd /mnt/Data && kate Right, that's even easier. So just put that to the Kate launhcer desktop item, or create a new launcher. |