Restoring tabs from previous session

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
mangodurian
Posts: 2
Joined: Wed Sep 10, 2014 8:29 pm

Restoring tabs from previous session

Postby mangodurian » Wed Sep 10, 2014 8:50 pm

I'm an ubuntu newbie.. just installed 14.04 .. And the latest version of PCManFM ..

I've been used to using windows 7 and explorer++

When I use the PCMan file manager, I have about a dozen tabs open at once. These tabs I'd like to leave permanently open. Is there any way I can get PCManFM to remember them, so that if I close the manager and reopen it, they are all still open, just as I left it in the previous session?

Rex Bouwense
Posts: 970
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: Restoring tabs from previous session

Postby Rex Bouwense » Wed Sep 10, 2014 9:36 pm

Welcome to the LXDE forum. PCMan FM has a bookmark feature now. You can bookmark any file and it will appear in the left hand column under Bookmarks. Is this what you are looking for?
Rex
Lubuntu 16.04

mangodurian
Posts: 2
Joined: Wed Sep 10, 2014 8:29 pm

Re: Restoring tabs from previous session

Postby mangodurian » Wed Sep 10, 2014 10:11 pm

Rex Bouwense wrote:Welcome to the LXDE forum. PCMan FM has a bookmark feature now. You can bookmark any file and it will appear in the left hand column under Bookmarks. Is this what you are looking for?


that's handy, but not really what I was after.. I'd just like to be able to close it, and next time I open it for all the same tabs to STILL be open.. so it looks like it did last time it was used.. with bookmarks it'd take too much clicking.. i always have the same 12 to 15 tabs open.. maybe this is not (yet) a feature with pcmanfm ..?

seppalta
Posts: 401
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: Restoring tabs from previous session

Postby seppalta » Thu Sep 11, 2014 7:37 am

Code: Select all

#!/bin/bash
pcmanfm  "file:/home/me/bin" &
pcmanfm  "file:/home/me/downloads" &
pcmanfm  "file:/home/me/images" &
exit

Replace "me" by the name of your home directory. Save as ~/bin/pcmanfm.sh and put ~/bin/pcmanfm.sh in your system's autostart file (see http://lxlinux.com/#4 for autostart information). You can put as many folders in the script as you like. If you want files opened in separate windows, use the command

Code: Select all

pcmanfm --new-win "file:/home/me/bin"

If you want to launch with a keybinding, edit the application section of ~/.config/openbox/rc.xml to contain the following:

Code: Select all

<keybind key="W-y">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>pcmanfm.sh</name>
        </startupnotify>
        <command>/home/me/bin/pcmanfm.sh</command>
      </action>
    </keybind>

Here I used "super+y". You can, of course, use other combinations not already used.

drooly
Posts: 393
Joined: Mon Apr 08, 2013 6:45 am

Re: Restoring tabs from previous session

Postby drooly » Fri Sep 12, 2014 5:14 am

good one, seppalta, but more of a workaround. and what if the tabs aren't always the same...

mangodurian, i'm about 95% sure that the answer is no.

spacefm, a fork of pcmanfm, has this feature. (it's rather dormant atm, but still quite usable. if you try it, try to use it without udevil, it should tie in nicely with your other lxde components.)

riveravaldez
Posts: 3
Joined: Tue Oct 14, 2014 5:31 am

Re: Restoring tabs from previous session

Postby riveravaldez » Thu Oct 16, 2014 7:25 am

Hi, I'm just another lover of LXDE and PCManFM who also wants the last one to save the session (tabs) after closing the program and re-opening.
Is there any place where we could ask for such feature for future versions/releases?, I guess that would be something really useful and not hard to code.
Thanks a lot!

riveravaldez
Posts: 3
Joined: Tue Oct 14, 2014 5:31 am

Re: Restoring tabs from previous session

Postby riveravaldez » Thu Oct 16, 2014 7:28 am

Hi again, I've just seen this, viewtopic.php?f=22&t=36662#p49463

So, this would be the place?, https://sourceforge.net/p/pcmanfm/featu ... rce=navbar

Thanks a lot!

drooly
Posts: 393
Joined: Mon Apr 08, 2013 6:45 am

Re: Restoring tabs from previous session

Postby drooly » Fri Oct 17, 2014 3:32 pm

yes.


Return to “PCManFM”

Who is online

Users browsing this forum: No registered users and 1 guest