Page 1 of 1
Views - Toolbar button redefined
Posted: 07 Oct 2012 13:15
by Borut
I would be happy if this button would be redefined so that:
Left click toggles between the last two different views used
Right click - no changes here - leave as is
Is it only me that wants to toggle between a detail view and a thumbnail view all the time when working in the image folders?
Re: Views - Toolbar button redefined
Posted: 07 Oct 2012 13:18
by admin
Borut wrote:Is it only me that wants to toggle between a detail view and a thumbnail view all the time when working in the image folders?
Me too. Therefore there is a special button to toggle between Details and Thumbs #1.

Re: Views - Toolbar button redefined
Posted: 07 Oct 2012 15:20
by Borut
Ooops, haven't noticed it before, sorry.
Thanks! That does the job for me.
Re: Views - Toolbar button redefined
Posted: 07 Oct 2012 18:45
by kunkel321
I'm relatively new to XYplorer, and have been impressed with these little details. Lots of smart little features are built in as "Easter eggs." For example typing "> report" in the address bar and pressing enter, will highlight all the occurrences of [report] in any of the file/folder names.... Good stuff.

Re: Views - Toolbar button redefined
Posted: 29 Oct 2012 22:47
by eil
maybe one can advice me something to be happy too, as i mostly use Large Icons - Thumbs #2 and there is no toggle for that.
besides, i find this 3 buttons kinda obsolete, 'cause whatever View one has, if clicked on it's option once more, it anyways switches to Details.
Re: Views - Toolbar button redefined
Posted: 30 Oct 2012 08:49
by FluxTorpedoe
Hi'
eil wrote:i mostly use Large Icons - Thumbs #2 and there is no toggle for that.
Here's a simple button you could use:
Code: Select all
if get("View") != 5 { // If not Thumbnails#2
// Display Thumbnails#2
#307;
} else {
// Display Large Icons
#309
}
Whatever the View you're in, it switches to Thumbs #2, and from there on, toggles between Large Icons and Thumbs #2.
Hope this helps,
Flux
Re: Views - Toolbar button redefined
Posted: 30 Oct 2012 12:49
by eil
FluxTorpedoe, just what i needed, thanks!

Re: Views - Toolbar button redefined
Posted: 31 Oct 2012 09:38
by Slavaon
FluxTorpedoe
Hello. I would change the script to switch type List-Restore Folder View
Code: Select all
if get("View") != 5 { // If not List
// Display List
#304;
} else {
// Display Restore Folder View
#478
}
But switching between turns List-Details
Help correct the script.
Thanks. Have a nice day!
Re: Views - Toolbar button redefined
Posted: 31 Oct 2012 11:19
by FluxTorpedoe
Hi'
Slavaon wrote:I would change the script to switch type List-Restore Folder View
You were nearly there. In the first line, you just have to change the 5 by a 2.
Code: Select all
if get("View") != 2 { // If not List
// Display List
#304;
} else {
// Display Restore Folder View
#478
}
In the first line, to determine "
If not List" (or "
If not WhateverView"), you must know which number (2, 5, etc.) corresponds to which view.
TIP: (one way is to) type in the address bar "
::echo get(View);" , you'll get a message with the number of the current view (e.g. "2" for List View).
Hope this helps
Flux
Re: Views - Toolbar button redefined
Posted: 31 Oct 2012 11:25
by PeterH
FluxTorpedoe wrote:Hi'
Slavaon wrote:I would change the script to switch type List-Restore Folder View
You were nearly there. In the first line, you just have to change the 5 by a 2.
Code: Select all
if get("View") != 2 { // If not List
// Display List
#304;
} else {
// Display Restore Folder View
#478
}
In the first line, to determine "
If not List" (or "
If not WhateverView"), you must know which number (2, 5, etc.) corresponds to which view.
TIP: (one way is to) type in the address bar "
::echo get(View);" , you'll get a message with the number of the current view (e.g. "2" for List View).
Hope this helps
Flux
...another way is to look into Help, for command get():
"View", [pane=a]
Returns the index of the current list view.
For the optional "pane" argument see "BytesSelected" above.
Possible returns and their meanings:
0 = Details
1 = Details with Thumbnails
2 = List
3 = Small Icons
4 = Thumbnails #1
5 = Thumbnails #2
6 = Thumbnails #3
Re: Views - Toolbar button redefined
Posted: 31 Oct 2012 12:26
by Slavaon
FluxTorpedoe
PeterH
Thank you. Works fine
I'm a newbie and don't know much.
Re: Views - Toolbar button redefined
Posted: 31 Oct 2012 12:38
by PeterH
Slavaon wrote:FluxTorpedoe
PeterH
Thank you. Works fine
I'm a newbie and don't know much.
So I think XY Help is just made for you
No - just fun!
When scripting the XY Help is something I always use!
(And not only for scripting

)
I'd recommend this for every XY user! Really helpful!

(And neccessary...)