Re: xtree-mode / dynamic static - tree view patch

2010-04-29 Thread Andrew Borodin
On Wed, 28 Apr 2010 21:47:39 +0200 Janek Kozicki wrote:
 In fact, at first I wanted to use the empty F7 label for that, but I
 just couldn't get it to work. Despite my best efforts the function to
 toggle the boolean, linked to F7 was never called. If you are curious
 what I have done here, see the second, “WTF” patch.

You didn't define the action in keymap file.

The

{ KEY_F (7), CK_TreeToggleXTree, F7 }

definition in default_tree_keymap variable doesn't work because the
[tree] section of keymap file completely overwrites the default_tree_keymap
binds.

Add the

TreeToggleXTree = f7

bind to the your keymap file (usually, /etc/mc/mc.keymap).

-- 
Andrew
___
mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


xtree-mode / dynamic static - tree view patch

2010-04-28 Thread Janek Kozicki
Hi,

Today I was using Tree view a little bit, because directory
structure in my project got too large. And I had to browse it somehow.

And so, I found out that the Dynamic / Static toggle is totally
useless for me. But the xtree-mode toggle was extremely useful.

I would remove dynamic/static completely and put xtree-mode toggle
there, but this could offend someone, so instead I added an option to
toggle xtree-mode.

So now, the F4 toggles two boolean variables. 00 → 01 → 10 → 11 → 00

see attached patch.

In fact, at first I wanted to use the empty F7 label for that, but I
just couldn't get it to work. Despite my best efforts the function to
toggle the boolean, linked to F7 was never called. If you are curious
what I have done here, see the second, “WTF” patch.

best regards
-- 
Janek Kozicki   http://janek.kozicki.pl/  |
Only in TEN-mc-toggle__xtree-mode: Makefile
Only in TEN-mc-toggle__xtree-mode/config: config.guess.cdbs-orig
Only in TEN-mc-toggle__xtree-mode/config: config.sub.cdbs-orig
Only in TEN-mc-toggle__xtree-mode: config.h
Only in TEN-mc-toggle__xtree-mode: config.log
Only in TEN-mc-toggle__xtree-mode: config.status
Only in TEN-mc-toggle__xtree-mode/contrib: Makefile
Only in TEN-mc-toggle__xtree-mode/contrib/dist: Makefile
Only in TEN-mc-toggle__xtree-mode/contrib/dist/debian: Makefile
Only in TEN-mc-toggle__xtree-mode/contrib/dist/gentoo: Makefile
Only in TEN-mc-toggle__xtree-mode/contrib/dist: mc.qpg
Only in TEN-mc-toggle__xtree-mode/contrib/dist: pkginfo
Only in TEN-mc-toggle__xtree-mode/contrib/dist: prototype
Only in TEN-mc-toggle__xtree-mode/contrib/dist/redhat: Makefile
Only in TEN-mc-toggle__xtree-mode/contrib/dist/redhat: mc.spec
Only in TEN-mc-toggle__xtree-mode/contrib: mc-wrapper.csh
Only in TEN-mc-toggle__xtree-mode/contrib: mc-wrapper.sh
Only in TEN-mc-toggle__xtree-mode/contrib: mc.csh
Only in TEN-mc-toggle__xtree-mode/contrib: mc.sh
Only in TEN-mc-toggle__xtree-mode/debian: files
Only in TEN-mc-toggle__xtree-mode/debian: mc
Only in TEN-mc-toggle__xtree-mode/debian: mc-dbg
Only in TEN-mc-toggle__xtree-mode/debian: mc-dbg.debhelper.log
Only in TEN-mc-toggle__xtree-mode/debian: mc-dbg.substvars
Only in TEN-mc-toggle__xtree-mode/debian: mc.debhelper.log
Only in TEN-mc-toggle__xtree-mode/debian: mc.postinst.debhelper
Only in TEN-mc-toggle__xtree-mode/debian: mc.postrm.debhelper
Only in TEN-mc-toggle__xtree-mode/debian: mc.substvars
Only in TEN-mc-toggle__xtree-mode/debian: stamp-autotools
Only in TEN-mc-toggle__xtree-mode/debian: stamp-autotools-files
Only in TEN-mc-toggle__xtree-mode/debian: stamp-makefile-build
Only in TEN-mc-toggle__xtree-mode/debian: stamp-makefile-install
Only in TEN-mc-toggle__xtree-mode/debian: tmp
Only in TEN-mc-toggle__xtree-mode/doc: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/hints: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/hlp: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/hlp/es: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/hlp/es: mc.hlp.es
Only in TEN-mc-toggle__xtree-mode/doc/hlp/hu: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/hlp/hu: mc.hlp.hu
Only in TEN-mc-toggle__xtree-mode/doc/hlp/it: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/hlp/it: mc.hlp.it
Only in TEN-mc-toggle__xtree-mode/doc/hlp: mc.hlp
Only in TEN-mc-toggle__xtree-mode/doc/hlp/pl: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/hlp/pl: mc.hlp.pl
Only in TEN-mc-toggle__xtree-mode/doc/hlp/ru: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/hlp/ru: mc.hlp.ru
Only in TEN-mc-toggle__xtree-mode/doc/hlp/sr: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/hlp/sr: mc.hlp.sr
Only in TEN-mc-toggle__xtree-mode/doc/man: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/man/es: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/man/es: mc.1
Only in TEN-mc-toggle__xtree-mode/doc/man/hu: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/man/hu: mc.1
Only in TEN-mc-toggle__xtree-mode/doc/man/it: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/man/it: mc.1
Only in TEN-mc-toggle__xtree-mode/doc/man: mc.1
Only in TEN-mc-toggle__xtree-mode/doc/man: mcedit.1
Only in TEN-mc-toggle__xtree-mode/doc/man: mcserv.8
Only in TEN-mc-toggle__xtree-mode/doc/man: mcview.1
Only in TEN-mc-toggle__xtree-mode/doc/man/pl: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/man/pl: mc.1
Only in TEN-mc-toggle__xtree-mode/doc/man/ru: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/man/ru: mc.1
Only in TEN-mc-toggle__xtree-mode/doc/man/sr: Makefile
Only in TEN-mc-toggle__xtree-mode/doc/man/sr: mc.1
Only in TEN-mc-toggle__xtree-mode/doc/man/sr: mcserv.8
Only in TEN-mc-toggle__xtree-mode/edit: Makefile
Only in TEN-mc-toggle__xtree-mode/edit: bookmark.o
Only in TEN-mc-toggle__xtree-mode/edit: choosesyntax.o
Only in TEN-mc-toggle__xtree-mode/edit: edit.o
Only in TEN-mc-toggle__xtree-mode/edit: editcmd.o
Only in TEN-mc-toggle__xtree-mode/edit: editcmd_dialogs.o
Only in TEN-mc-toggle__xtree-mode/edit: editdraw.o
Only in TEN-mc-toggle__xtree-mode/edit: editkeys.o
Only in TEN-mc-toggle__xtree-mode/edit: