IgnorantGuru / spacefm

SpaceFM File Manager
http://ignorantguru.github.com/spacefm/
GNU General Public License v3.0
489 stars 73 forks source link

New tab, panel or window opens on $HOME #81

Closed ghost closed 12 years ago

ghost commented 12 years ago

In PartedMagic spacefm when opening a new tab, panel or window always open on /root. I assume this to be $HOME, but as in PartedMagic the one and only user is root I cannot verify this. For me opening on the same location as the current one (e.g. when I am on /etc/xdg the new tab, panel or window should open on /etc/xdg too) would be more user-friendly.

IgnorantGuru commented 12 years ago

It's not $HOME unless you haven't set the default dir.

In the file list's right-click menu, you can set Go|Set Default.

There are two ways to open a new tab: New|Tab (opens in default dir) and New|Tab Here (opens in current dir). You can set whatever key you like for either or both.

Distros can set the initial behavior how they like. If you don't like how this is working in Parted Magic by default, you might ask them to set it up differently.

/root probably isn't the best default for root user anyway, so I'll consider changing that.

ghost commented 12 years ago

Go > Set Default indeed works for subsequent new tabs, panels and windows. I missed out on the New > Tab [Here] options ... they do what I requested. Might it be possible to implement a Here option for panels and windows too? Regards, Dick

IgnorantGuru commented 12 years ago

New window behavior depends on the File|Save Tabs setting. If checked then new windows will open with the same tabs in the same panels as when it last saved its config or exited. So with that checked a new window will open 'here'. If unchecked they open a single tab in the default dir. Likewise panels when first shown depend on File|Save Tabs.

You can also see some info here on opening tabs, panels, and windows with specified directories on the command line (or via a custom spacefm.desktop file).

There aren't any plans for a 'open panel here' function, but I'll consider it - the closest would be that you can right-click on a directory and select Open|In Panel|... which can also be associated with key shortcuts.