IgnorantGuru / spacefm

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

Enhancing the variables and the socket methods/properties for the tabs [Request] #272

Closed Micha007 closed 11 years ago

Micha007 commented 11 years ago

Hello !

The first thing I missed in SpaceFM was a preset-section for tabgroups somewhere, so I started to script one.

No problem, so far, but it would ease such tasks, if there were SpaceFM-variables for the amount of tabs per panel, and a socket-method to create a new tab, if possible, like this :

fm_tabs_in_panel[n]  or just for the current panel :    fm_tabcount

spacefm -s set --tab next current_dir Dir

Maybe, its allready there, just not documented yet ? Would be great, if you could make that possible !

Cheers !

Micha007

IgnorantGuru commented 11 years ago

Hi, The tab count is a good idea - will add that. To open a new tab:

spacefm [--panel P] DIR

If opening groups of tabs, a small sleep 0.1 between each is sometimes useful.

This sounds like it would be a good plugin.

Micha007 commented 11 years ago

First I also took that solution, but it opens with my "obligatory" gtk-messages in the startup, so I thought, it starts a complete FM. I than took the workaround with "emit-key 116 4".

IgnorantGuru commented 11 years ago

it opens with my "obligatory" gtk-messages in the startup

I don't know what messages you're referring to. Example?

It starts a new instance, which sends a socket command to the running instance and quits. It inits gtk because that is part of the command line parse - probably not as efficient as it could be.

Micha007 commented 11 years ago

Oh, the messages are just due to my Gtk-theme, which is more a constructionplace...

IgnorantGuru commented 11 years ago

tab_count and new_tab socket properties have been added to the next branch for testing, due for 0.8.7 release. See spacefm -s help

Micha007 commented 11 years ago

Hello !

Wow, you are as fast as lightning ! Recently, I recognized, that the next version of SpaceFM is released, but didn't scrolled down the page.

Now I took a look through the closed issues, and what did I saw ?

Great, that you implemented the new tab socket properties, many thanks !

Since I've had not much followers on that issue, I haven't expected it to be included at all, and more than ever, in such a short time !

In my current bash-project, I have to struggle with Zenity, so I will see, if I can manage to use the SpaceFM-dialog for making the tabgroup-script a little more convenient to use. And with the new socket properties, the script should shrink to a fraction of the recent one.

I'm only unsure, which new SpaceFM version I shall take, mine is 0.85+. Are there any major changes planned for one of the upcoming releases ?

Hope, you enjoy your easter-holidays, you have deserved it,

Micha

IgnorantGuru commented 11 years ago

Thank you, Micha. You can see some of the current work being done for the next release here.