You are here: PSPad forum > English discussion forum > Re: Please inherit directory to save from active tab

Re: Please inherit directory to save from active tab

#1 Please inherit directory to save from active tab

Posted by: Freeman | Date: 2014-11-28 19:54 | IP: IP Logged

When I'm creating new file, it inherits highlighter and filename extension from the active tab, that's well. But when I'm trying to save it, PSPad offers me some other directory, one of I worked with before. Do you think, is this not too consistent?

Edited 1 time(s). Last edit at 2014-11-28 19:55 by Freeman.

Options: Reply | Quote | Up ^


#2 Re: Please inherit directory to save from active tab

Posted by: Gorlash | Date: 2014-12-01 14:15 | IP: IP Logged

Hi Freeman;
Have you tried one of the recent builds?? The author has implemented a number of modifications of new-file handling for me recently, because I always work from the console. I recommend trying out the current build 2521, that should work much better for you.

I just confirmed that a new file is saved in the directory that it was opened in, using build 2521.

Options: Reply | Quote | Up ^


#3 Re: Please inherit directory to save from active tab

Posted by: Freeman | Date: 2014-12-01 22:58 | IP: IP Logged

Gorlash:
Have you tried one of the recent builds??

I'm using build 2521, of course. Let me explain more detail.

PSPad run, I have two tabs opened:
1. X:\Projects\Weekends\trunk\Plunger\MirandaDB.pas
2. C:\Tools\LightTPD\conf\service.conf

I want to create new Pascal file. I'm making first tab active, then pressing New button on the toolbar. PSPad creates new tab, names it Untitled.pas and assigns Object Pascal highlighter to it, all okay.

I'm trying to save new file, pressing Ctrl+S. WTF, T:\ directory is active in the save dialog!

Options: Reply | Quote | Up ^


#4 Re: Please inherit directory to save from active tab

Posted by: Gorlash | Date: 2014-12-02 01:09 | IP: IP Logged

Ahhh, yes, I see... I can duplicate this as well.
My sequence was:

> cd c:\SourceCode\win32
> pspad pcbacdrop.cpp
> cd \Users\ascender\Downloads
> pspad wcmdline.cpp
> cd \notes

Then select File:New File - C/C++
This creates a file named "New2.c", with no path. (Hi Mr Pspad! Sound familiar??
tongue sticking out smiley ). Then, when I try to save, the path is c:\home... I'm not sure where it got that path from.

I suspect that our author/maintainer is getting a bit tired of struggling with derived/assumed paths....

Options: Reply | Quote | Up ^


#5 Re: Please inherit directory to save from active tab

Posted by: pspad | Date: 2014-12-02 10:20 | IP: IP Logged

your command line games are not relevant to any running application

when you start application, it takes some working directory from where is run
when you start another PSPad, working directory isn't changed
when you change path in your command it hasn't and can't have influence of running application

PSPad is able to take open file path from existing file (program settings / files and dirs)
But in case you open new file, it has no path.

Where to save it?
Windows will offer you last used save folder.

Lets imagine situation PSPad will add path from current file (in case when any path will be). It will be chaotic, cause if you switch to any open file and create new file, it will inherit path. Each new file can have different path.

If you want to change functionality, define explicit rules for all cases which can be described and explained in help.

Options: Reply | Quote | Up ^


#6 Re: Please inherit directory to save from active tab

Posted by: Gorlash | Date: 2014-12-02 13:25 | IP: IP Logged

Okay, I understand; this really *is* different from my command-line issues; when loading from the command line, there is always a "current directory". But when creating a new file from inside the running PsPad, there really isn't...

Thanks for the clarification, Jan!

Options: Reply | Quote | Up ^


#7 Re: Please inherit directory to save from active tab

Posted by: Freeman | Date: 2014-12-02 14:42 | IP: IP Logged

This was a feature request. Can I hope to implementation, Jan?

Options: Reply | Quote | Up ^


#8 Re: Please inherit directory to save from active tab

Posted by: pspad | Date: 2014-12-02 15:54 | IP: IP Logged

Freeman:
Gorlash:
Have you tried one of the recent builds??

I'm using build 2521, of course. Let me explain more detail.

PSPad run, I have two tabs opened:
1. VX:\Projects\Weekends\trunk\Plunger\MirandaDB.pas
2. C:\Tools\LightTPD\conf\service.conf

I want to create new Pascal file. I'm making first tab active, then pressing New button on the toolbar. PSPad creates new tab, names it Untitled.pas and assigns Object Pascal highlighter to it, all okay.

I'm trying to save new file, pressing Ctrl+S. WTF, T:\ directory is active in the save dialog!

Check settings in program setting / files and dirs what folder is set. Windows remembers save dialog directory for each application and if you dont specify any, it will suggest it.

Options: Reply | Quote | Up ^


#9 Re: Please inherit directory to save from active tab

Posted by: Freeman | Date: 2014-12-03 07:10 | IP: IP Logged

pspad:
Check settings in program setting / files and dirs what folder is set.

"Same As Active Document", as I understand you.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR