SUMMARY Starting a fresh document in KATE, saving stores it in /home/myname. After discussion https://discuss.kde.org/t/633 , I propose to add an option in Settings > KATE Settings > Open and save files where user can define their standard location for new stuf, in my case f.e. /mnt/Data.
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.