Adding Default Lister to A Button

Adding Default Lister to A Button.

I have made several getting around buttons to take me quickly to often used folders.

After viewing several Folders, Opus is in a mess, opened folders all over the place.

What I am trying to do is create a new button that will reset Opus to the Default Lister but I can not find naything on this other than to close Opus and re-open it (which in my case uses the Default Lister).

Any ideas what Command and\or Arguments might achieve this?

Thanks;
Doc

Here's one way to do it:

Go NEW Close

Thanks Leo;

That worked.

I see what it is doing; opening a new Lister and closing the old messed up one. How simple.

I hope some other methods will surface also as I would really like to reset the current Lister back to the default without opening another Lister; if possible. If not, your method will do the job for now.

Thanks again;
Doc

Why? What difference does it make whether the current one resets vs closing it and opening a new one? If you tell us then maybe we can think of a way to do what you want.

No difference really; I just do not care to open additional Listers (a personal thing).

I am also thinking that it may be a little faster to redraw (I have an old computer).

If there are different ways to do it than I would like to know. I seems that I almost always learn more by having choices.

Doc

There's actually some odd and broken overlap between Go LAYOUT and Prefs LAYOUT commands.

Ideally, you'd be able to do something like either:

Go LAYOUT=default

or

Prefs LAYOUT=default LAYOUTTHISLISTER

...neither of which work properly even with 'saved' layouts, not to mention Greg hates the word 'default' and won't let us actually reference it within the program :wink:.

It seems that LAYOUTTHISLISTER defaults to doing nothing instead of (as the manual says) doing everything. I've just reported this to GPSoftware.

This works better:

Prefs LAYOUT="My Layout" LAYOUTTHISLISTER=size,pos,paths

It still doesn't work with the Default layout, though. I've just reported that as well as it would make sense to be able to refer to the Default layout there.

Go /default LAYOUT=default works but opens a new window so it's no better than my original suggestion. (The purpose of Go LAYOUT is to open a particular folder, /default in my example, in a new window according to a particular layout. So I don't think it's wrong that it opens a new window and I also don't think it's wrong that it does nothing if no folder is specified.)

VERY interesting.

Go LAYOUT=default wouild be nice.

What I envision is a command that would reset the current Lister back to the default without the need of opening a new Lister and closing the old; sort of what I often was doing manually by closing expanded folders to get back to my clean startup default.

Doc