id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blockedby,blocking,branch_state,votes 3088,Tell the current directory to gnome-terminal,egmont,andrew_b,"Gnome-terminal has had a cool feature for ages: when you open a new tab, it opens in the same directory as the one that was previously active. This gives a huge productivity boost. G-t used to achieve this by looking at the tab's immediately child (typically a shell), and checking its cwd under /proc. This way it was impossible for it to know MC's current directory. G-t 3.7.0 (vte 0.34.0) changed the implementation: g-t no longer digs into /proc to figure it out automatically, it's the shells responsibility to tell it to g-t. To test: if you have g-t >= 3.7.0 then execute this {{{ echo -ne $'\e]7;file:///usr/bin\a' }}} and then open a new tab, it will open in /usr/bin. The directory has to be URI-encoded, that is, prefixed by file:// and special characters encoded with %. It would be really cool to have an option so that MC sets this whenever the directory is changed, pretty similar to the way it can update the window title. This way whenever you opened a new tab in g-t, it would open at the directory where you are in MC. https://bugzilla.gnome.org/show_bug.cgi?id=675987 https://git.gnome.org/browse/gnome-terminal/commit/?id=7f185514f5fad3cea10bed6ee8057379e25a3573 ",enhancement,closed,minor,4.8.32,mc-core,4.8.10,fixed,,egmont,,,merged,committed-master