Page 1 of 1

Toggle Flat View

Posted: 03 Jan 2011 07:51
by soja
OK, so I've been spending an evening trying to work out how to do some things in XYplorer that I've been using other file managers for in the meantime. I figure that if I can make XYplorer "mine" (that is, configure it to work in the same way that I like to work...or at least 90% of the way there), then I'll be able to be that much more productive.

So I've been reading through a bunch of threads regarding the so-called "Flat View," and I'd like to figure out a way to toggle the view between "flat" and "list" (my current view). Right now, I can almost get it through setting Search results to show in the same tab, then CTRL+F3, then Alt+Left, but I'd really like to simply tap Numpad-/ to toggle. (And I DO like that the "flat" search view can have a different style, i.e. column headings, details, etc., than the default current view.)

A bonus would be to figure out a way for the flat view to "stay on" through directory changes, but that's probably more difficult.

I figure I could try XYplorer scripting, but I don't have any experience there and I though I'd ask first. Any suggestions on how I might do this from those who really know XYplorer well? Thanks in advance!

Re: Toggle Flat View

Posted: 04 Jan 2011 04:21
by soja
OK, so here's where I'm at with it. I created a User-Defined Command called "Toggle Flat View" and specified this script:

Code: Select all

if (get("view") == 0) {goto <curpath_s>;} else {#263;}
Though I don't think it's very robust because it assumes that the search results display in the current tab in details view, and also that my default view is list view. Well, that's all true for me right now, but ... not forever.

I also want to make sure that columns are auto-fitted and the sortby param is the path column in "flat" view. And then reset it to default in my list view. I'm pretty sure that's easy enough. Is there a way to set the column order and column fields in details view?

Would you do this another way?