Hi, Fabian.

If you want to define 'h' key as your shortcut you won't be able to
type 'h' literal into command line anymore, so I assumed Ctrl-x, h
shortcut here.

You can add to your ~/.xyzcmd/conf/keys.xyz following:

import os
bind(lambda: call(":sys:panel:chdir",
os.path.dirname(macro("ACT_CWD"))), kbd("CTRL-x", "h"))

This is valid for version 0.0.2. For 0.0.3 it would be more elegant:
bind(lambda: call(":sys:panel:chdir", macro("ACT_BASE")), kbd("CTRL-x", "h"))

P.S.  It is a discussion group fox XYZCommander:
http://groups.google.com/group/xyzcmd
you can post any question there if you wish.

2009/11/30 Fabian Braennstroem <[email protected]>:
> Hi Max,
>
> good work with your xyzcommander! Do you have some hints, how to define
> 'h' as the keys for going one directory upwards without jumping to the
> first entry?
>
> Thanks in advance!
> Fabian



-- 
~syhpoon

_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to