Page 1 of 1

Build ...32 tabs bug

Posted: 08 Jun 2007 13:43
by blackbit
I set "C:\" as my start path, and saved the config. Then, I checked the don't save tabs and don't save history options.
When I now launch a new XYplorer instance with a path on the command line, XYplorer opens and shows 2 tabs : one new tab for the specified path and one "empty" tab. When I click the empty tab, the view pane reads : "Currently not available". This also happens when I launch XPplorer with the same command line path as the start path in the ini file.

Last open tab.

Posted: 08 Jun 2007 13:45
by blackbit
I also think, that if 'don't save tabs' is checked, XYplorer should retain the old start path, instead of change it to the last tab that was open.

Re: Last open tab.

Posted: 08 Jun 2007 14:15
by admin
Yep, the bug was there. Fixed now. Thanks!
blackbit wrote:I also think, that if 'don't save tabs' is checked, XYplorer should retain the old start path, instead of change it to the last tab that was open.
I get the idea, but isn't it 2 different things that should be kept separated? Not sure yet...

EDIT: Then also an interface for stating/changing a permanent startpath would be necessary. Else how could you change the startpath?

That would be nice

Posted: 08 Jun 2007 15:05
by blackbit
That would be nice. Personally, I prefer my startpath to remain the same always. Depending on the project I'm working on, I can then change it at will...

Re: That would be nice

Posted: 08 Jun 2007 15:13
by admin
blackbit wrote:That would be nice. Personally, I prefer my startpath to remain the same always. Depending on the project I'm working on, I can then change it at will...
Maybe later.

But as a workaround: why don't you simply always close the app without saving? Then you start always in the same way at the same location, until you explicitly "Save Configuration" at some other location which will then be the startpath.

Right

Posted: 08 Jun 2007 15:14
by blackbit
That's what I'm doing right now ;-)

Re: Right

Posted: 08 Jun 2007 15:17
by admin
blackbit wrote:That's what I'm doing right now ;-)
Right on! So what do you need the startpath customization for?

Even better:

Posted: 08 Jun 2007 15:54
by blackbit
I'll try to explain it...

By default, when I double click a directory icon in Windows, I use XYplorer to open it (Windows Explorer crashes on me a lot due to some problem with TortoiseSVN or so). However, unless I double click my start-path folder, XYplorer always shows me 2 tabs... In fact, when I open a new instance, using a comand-line path, I'dd prefer that the command-line path would override the start path. That's the folder I'm interested in after all...

Think of XYplorer as an MDI application, like Word or Excel. You just use tabs instead of child windows. By default if I would start Word without any parameters, I would expect to see a 'new' document, based on my default template (would be the start folder in XYplorer). However, when I double-click on a word document, I want Word to immediately open that document, without creating a new one... The same would hold through for XYplorer.

You might even add an option, so that if you would start XYplorer using it's icon, or without a parameter, you would start with NO tabs at all...

The same applies to for example FireFox... By default : your home page. Firefox opended due to url request : no home page.

Re: Even better:

Posted: 08 Jun 2007 16:00
by admin
As the "2-tab bug" is fixed (upload in a minute) I think it works just as you like it.

BTW, it was always the case that the command line path overwrites the old startpath. It just changed shortly due to some little bugs I'm just fixing right now...

OK.

Posted: 08 Jun 2007 16:05
by blackbit
Ok. Great. I'll test it right away. Very nice work by the way!

Re: OK.

Posted: 08 Jun 2007 16:25
by admin

Code: Select all

    + Here's what happens when you start XY with startpath in command 
      line, in wild man's code:
        If any existing tab points to that path
          select this tab
        else
          if 1st instance
            if it is not locked AND
            if "Open command line start path in new tab" is false
              overwrite the current tab 
            else
              create new tab
          else [2nd instance]
            create new tab