Two way terminal

Asked by Egemen Aydin on 2011-10-20

Is it possible to configure nautilus terminal working in two way? For instance, when I change folder from nautilus, nautilus terminal automatically writes the "cd /path/to" and changes the folder itself. However if I write to "cd /path/to" to nautilus terminal and change directory, nautilus doesn't show changed directory. It would be great to configure this.

Question information

Language:
English Edit question
Status:
Open
For:
Nautilus Terminal Edit question
Assignee:
No assignee Edit question
Last query:
2011-10-20
Last reply:
Fabien LOISON (flozz) said : #1

It's very hard to implement this functionality, because Nautilus Terminal have no information about the current folder in its child process (the shell) and there is no api for changing the folder in nautilus... :(

Jarrod Miller (timbus) said : #2

Why not alias 'cd' in the bash terminal to a script which will trigger an event, signaling your extension to change the parent window?

As for changing the directory nautilus is displaying, I don't know.. I'm sure nautilus should have an API for that.
This guy seemed to know how to do it: http://christian.amsuess.com/tools/nautilus-remote/
But his SVN is down so I can't see how.

Fabien LOISON (flozz) said : #3

The demo video on the website is very interesting... I'll try to learn more about it.

Thanks for the link

Jarrod Miller (timbus) said : #4

There we go, his SVN is up now.. Here's the code he uses:

            self.window.emit("prompt-for-location",to)
            self.window.get_focus().emit("activate")

Seems easy enough, I guess nautilus has a custom signal for the location bar..

Can you help with this problem?

Provide an answer of your own, or ask Egemen Aydin for more information if necessary.

To post a message you must log in.