Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Troels Henriksen
Suraj N. Kurapati sun...@gmail.com writes: On Thu 24 Nov 2011 05:12:17 PM PST, Stephen Paul Weber wrote: Somebody signing messages as Suraj N. Kurapati wrote: the ability to open new programs in the currently focused client's workdir. https://github.com/sunaku/.dwm/compare/tip...spawn_cwd

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Kurt Van Dijck
On Fri, Nov 25, 2011 at 09:54:44AM +0100, Troels Henriksen wrote: Suraj N. Kurapati sun...@gmail.com writes: On Thu 24 Nov 2011 05:12:17 PM PST, Stephen Paul Weber wrote: Somebody signing messages as Suraj N. Kurapati wrote: the ability to open new programs in the currently focused

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Troels Henriksen
Kurt Van Dijck kurt.van.di...@eia.be writes: On Fri, Nov 25, 2011 at 09:54:44AM +0100, Troels Henriksen wrote: Suraj N. Kurapati sun...@gmail.com writes: On Thu 24 Nov 2011 05:12:17 PM PST, Stephen Paul Weber wrote: Somebody signing messages as Suraj N. Kurapati wrote: the ability to

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Bastien Dejean
Troels Henriksen a écrit : Alternative/additional idea: look for the process indicated by the _NET_WM_PID property, then use the working directory of that process. It seems the value of _NET_WM_PID is not always useful: For urxvtc clients, it is equal to the pid of urxvtd. -- Bastien

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Suraj N. Kurapati
On Fri 25 Nov 2011 01:00:58 PM PST, Bastien Dejean wrote: Troels Henriksen a écrit : look for the process indicated by the _NET_WM_PID property, then use the working directory of that process. It seems the value of _NET_WM_PID is not always useful: For urxvtc clients, it is equal to the

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Suraj N. Kurapati
On Fri 25 Nov 2011 10:11:35 AM PST, Kurt Van Dijck wrote: Suraj N. Kurapati wrote: the ability to open new programs in the currently focused client's workdir. https://github.com/sunaku/.dwm/compare/tip...spawn_cwd I don't understand the feature. It's all about spatial locality. When I'm

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Connor Lane Smith
On 25 November 2011 20:39, Suraj N. Kurapati sun...@gmail.com wrote: Yes, and that's good enough for me.  However, in the case that the remote client's title contains a path that also exists on the local machine (perhaps network mounted on both local remote machines) then your newly launched

Re: [dev] [dwm] 2000 SLOC - assert() sanity checks

2011-11-25 Thread Suraj N. Kurapati
On Sun 30 Oct 2011 08:53:48 AM PDT, Martin Kopta wrote: 4) Should be the code made smaller by witty constructions or do you prefer boring and obvious constructions (which are generaly longer)? Following this train of thought, what does the suckless community have to say about sanity checks via

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Julian Dammann
It's all about spatial locality. When I'm editing some code in Vim, I like to launch some new terminals (or file managers) in the same working directory as the file I'm editing to do additional things. Ever tried :!your_terminal in vim? Maybe that's good enough for you if bound to some key.

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Suraj N. Kurapati
On Fri 25 Nov 2011 10:42:31 PM PST, Julian Dammann wrote: It's all about spatial locality. When I'm editing some code in Vim, I like to launch some new terminals (or file managers) in the same working directory as the file I'm editing to do additional things. Ever tried :!your_terminal

[dev] Re: [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Suraj N. Kurapati
On Thu 24 Nov 2011 02:57:13 PM PST, Suraj N. Kurapati wrote: On Thu 24 Nov 2011 01:58:05 PM PST, Suraj N. Kurapati wrote: So I ported this feature to DWM using just 27 SLOC in this[2] patch, [2]: https://github.com/sunaku/.dwm/compare/tip...spawn_cwd It is now 29 SLOC after using DWM

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Patrick Haller
On 2011-11-25 22:42, Julian Dammann wrote: It's all about spatial locality. Ever tried :!your_terminal in vim? Maybe that's good enough for you if bound to some key. autocmd BufEnter * cd %:p:h for when you use multiple buffers in vim.

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Suraj N. Kurapati
On Sat 26 Nov 2011 08:28:26 AM PST, Patrick Haller wrote: autocmd BufEnter * cd %:p:h for when you use multiple buffers in vim. set autochdir -- Bus error -- please leave by the rear door. signature.asc Description: PGP signature