Defman21 / komodo-terminal-butterfly

Docks the Butterfly terminal in Komodo
https://defman.me/projects/komodo-terminal/
Other
8 stars 3 forks source link

Base tab title on the CWD #10

Open Naatan opened 8 years ago

Naatan commented 8 years ago

Eg. if I am in ~/Projects/komodo-dev I'd like the tab title to say something like ../komodo-dev. You could simply set a max-width for the tab and set the label to crop="start"

Defman21 commented 8 years ago

Thanks for the tip!

Defman21 commented 8 years ago

It should depends on the current working directory of Komodo or the one in the butterfly session?

Naatan commented 8 years ago

The one in the butterfly session.

Defman21 commented 8 years ago

That makes everything harder :stuck_out_tongue:

Defman21 commented 8 years ago

Sorry Nathan but I don't see any way to do it right now. The only one way which is hacky is calling pwd directly in butterfly (as it done for "Set CWD to current path of project/buffer") and grab the stdout, but that will produce a lot of calls in the butterfly and the user will see them.

If you have any ideas - please write them there :) I'm wondering if Butterfly has some sort of "environment" variable defined in butterfly object (in JS), so I'd grab $PWD then.

Naatan commented 8 years ago

I'll dig into this when I get a chance.

Defman21 commented 8 years ago

Thank you!

Defman21 commented 7 years ago

I were digging in it and there's no way to do that :(