monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] completing ids


From: Joel Reed
Subject: [Monotone-devel] completing ids
Date: Fri, 3 Jun 2005 12:11:47 -0400
User-agent: Mutt/1.5.5.1i

i have one question on how to help users completing file id's.

on my local tree, all zsh revision completions now show something like this:

(%:/opt/src/monotone) mt update 011<TAB>
011a0a921b5bc00422e071a4f40e7af63749c9e2 address@hidden 2005-05-11T21:52:01
011d6cdceab93431adccc62a6abd9774ec68ecb7 address@hidden 2003-09-12T03:52:47

(%:/opt/src/monotone) mt cat revision 22e<TAB>
22e1364c9cdd811f697134abd7e751ab076abb2b address@hidden 2004-11-15T07:16:26
22e8f49b38120c7fc7ed7c756bcc5d4d122cdfad address@hidden 2005-03-23T09:58:36

etc.

and key completions look like this:

(%:/opt/src/monotone) mt chkeypass 2<TAB>
20289365fc90ef501739c57e359a87191476859b address@hidden
2b7a4aec9e5d9281257d0e8d35a3441a22b036df address@hidden

now for completeness, I'd love to hack something in for the one command
that seems to need file id completion:

(%:/opt/src/monotone) mt cat file 22f<TAB>
22f12e9d453065dce5ef5feabc41a5fa2399b8c3
22fad9e75c3d7d4d6e9e6467db85594f1ce51cd4

is there any function/SQL i could use/hack in to get something like:

(%:/opt/src/monotone) mt cat file 22f<TAB>
22f12e9d453065dce5ef5feabc41a5fa2399b8c3 commands.cc
22fad9e75c3d7d4d6e9e6467db85594f1ce51cd4 work.cc

not a big deal, but i like completeness!

jr




reply via email to

[Prev in Thread] Current Thread [Next in Thread]