Page 1 of 1

Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 18:08
by kartal
Hi
I am wondering if it is possible to open a new tab everytime I use "go to" ?


thanks

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 18:17
by serendipity
Welcome to XYplorer forums,
You mean goto from go menu? if so no. But if like you can assign a keyboard shortcut for this. If you want one of us can guide you through this procedure.If you want to do it yourself read about XY Scripting and do what you like.

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 18:38
by kartal
Just in case, let me articulate little better. I just want to " go to" any location without modifying current tab. I was hoping that when I fire "go to" the result would open in a new tab.

Achieving it through another shortcut is fine but I have no experience with xyplorer scripting.

thanks

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 18:54
by j_c_hallgren
kartal wrote:I just want to " go to" any location without opening a new tab and running invoking "goto". So that I do not change current tabs location. I was hoping that when I fire "go to" the result would open in a new tab.
:? I'm a bit confused by this...the first sentence seems to say you don't want to open a new tab but last sentence says the opposite.

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 18:58
by kartal
I am so sorry, you are right. Bad typo there.

Right version

"I just want to " go to" any location without modifying current tab. I was hoping that when I fire "go to" the result would open in a new tab."



j_c_hallgren wrote:
kartal wrote:I just want to " go to" any location without opening a new tab and running invoking "goto". So that I do not change current tabs location. I was hoping that when I fire "go to" the result would open in a new tab.
:? I'm a bit confused by this...the first sentence seems to say you don't want to open a new tab but last sentence says the opposite.

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 19:13
by serendipity
I am also confused. This is how "Go to..." (from go menu) works after you enter a location in the text field:
1) New tab is always opened if all your current tabs are locked.
2) Current tab or default tab is reused.

So after you enter a path in "Go to...", what do you want to do, open new tab or reuse old tab?

More about tabs here

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 19:21
by kartal
I just want the result to be shown in new tab regardless of current tab`s state (locked, not locked or default)

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 19:22
by jacky
Well, the thing is that the Go to feature supports a lot more than just locations, but also VF, Name Search, URL, etc

But, if you use this script instead of the Go to feature, then a new tab will be opened each time. Of course, if you typed in something like an URL or a script, that will be pointless, obviously, but for locations it'll work as expected I think. Note however that you won't have any MRU here like you do on Go to, also.

Code: Select all

input $dest, "Enter destination";
  // *dreams for commands to opentab & closetab*
  #340;
  goto $dest;
Since you're new, in case you don't know how to use this script here's what you need to do :
- menu User|Manage Commands
- Click on "Run Script", then button "New"
- On "Caption" put whatever your want, e.g. "Go to In New Tab..."
- Click on the "Edit..." button to enter a multi-line script, and paste the script above
- If you want, you can assign a KS
- Click "Apply" and then "OK"

Now, you can use it using the KS you assigned, or menu User|Run Script|Go to In New Tab... (or whatever caption you used)

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 19:25
by kartal
Jacky thank you so much. it works as advertised :) That does exactly what I was trying to describe.

Only thing I am missing is folder-file suggestions dropdown menu which Goto or adress bar has.

jacky wrote:Well, the thing is that the Go to feature supports a lot more than just locations, but also VF, Name Search, URL, etc

But, if you use this script instead of the Go to feature, then a new tab will be opened each time. Of course, if you typed in something like an URL or a script, that will be pointless, obviously, but for locations it'll work as expected I think. Note however that you won't have any MRU here like you do on Go to, also.

Code: Select all

input $dest, "Enter destination";
  // *dreams for commands to opentab & closetab*
  #340;
  goto $dest;
Since your new, to use this script here's what you need to do :
- menu User|Manage Commands
- Click on "Run Script", then button "New"
- On "Caption" put whatever your want, e.g. "Go to In New Tab..."
- Click on the "Edit..." button to enter a multi-line script, and paste the script above
- If you want, you can assign a KS
- Click "Apply" and then "OK"

Now, you can use it using the KS you assigned, or menu User|Run Script|Go to In New Tab... (or whatever caption you used)

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 19:30
by jacky
You're welcome, glad I could help :)
kartal wrote:Only thing I am missing is folder-file suggestions dropdown menu which Goto or adress bar has.
Yeah, that's what I meant by MRU. But as I said, there's no way to have this here... You'll have to choose between the two ;)

Actually, you could also use this script instead, might be smarter:

Code: Select all

  // Open New Tab
  #340;
  // Go to...
  #531;
Then it will first open the new tab, then trigger the usual Go to feature, so you got the MRU back! Of course, if you cancel here, remember the new tab has already been opened!

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 19:44
by kartal
Cool, at least there is a work around. I am going to give them a test ride asap.

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 20:35
by admin
jacky wrote:Well, the thing is that the Go to feature supports a lot more than just locations, but also VF, Name Search, URL, etc

But, if you use this script instead of the Go to feature, then a new tab will be opened each time. Of course, if you typed in something like an URL or a script, that will be pointless, obviously, but for locations it'll work as expected I think. Note however that you won't have any MRU here like you do on Go to, also.

Code: Select all

input $dest, "Enter destination";
  // *dreams for commands to opentab & closetab*
  #340;
  goto $dest;
Since you're new, in case you don't know how to use this script here's what you need to do :
- menu User|Manage Commands
- Click on "Run Script", then button "New"
- On "Caption" put whatever your want, e.g. "Go to In New Tab..."
- Click on the "Edit..." button to enter a multi-line script, and paste the script above
- If you want, you can assign a KS
- Click "Apply" and then "OK"

Now, you can use it using the KS you assigned, or menu User|Run Script|Go to In New Tab... (or whatever caption you used)
... quite often I have to write down these micro-manuals for newbies -- too often!! And here's the good news: on my famous list is copy-paste-support for adding new UDCs! In future it will go like this:
(1) [UDC definition in special format...]
(2) Copy (1) to clipboard
(3) menu User|Add UDC from Clipboard
Done.
Okay, assign a KS must be manual work.

Re: Opening "Go to" in new tab automatically?

Posted: 14 Aug 2008 20:39
by serendipity
admin wrote:... quite often I have to write down these micro-manuals for newbies -- too often!! And here's the good news: on my famous list is copy-paste-support for adding new UDCs! In future it will go like this:
(1) [UDC definition in special format...]
(2) Copy (1) to clipboard
(3) menu User|Add UDC from Clipboard
Done.
Okay, assign a KS must be manual work.
Nice. :D