[Linux-specific patch] Tabbed extension: new tab autochdir to current tab's working dir

Marc Lehmann schmorp at schmorp.de
Mon May 24 13:28:24 CEST 2010


On Mon, May 24, 2010 at 01:16:36PM +0300, Емил Станчев <emils at fmi.uni-sofia.bg> wrote:
> * When a new tab is opened, its working directory is the same as the
>   currently opened tab.

The patch doesn't do that, however - working directories are per-process,
and there is no way for urxvt to know which process is meant. To do it
properly, you need osme communication form the process running inside.

> If anyone know a portable way to do the same thing,

A method that works even on linux is to identify what you mean with
"working directory", for example, a good point is when the shell prints a
prompt to wait for user input. That could be modified to tell urxvt about
the current wd (e.g. by setting a window property).

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\




More information about the rxvt-unicode mailing list