* Remove = in alias completion
@ 2008-09-02 23:16 Jörg Sommer
2008-09-02 23:28 ` Mikael Magnusson
0 siblings, 1 reply; 3+ messages in thread
From: Jörg Sommer @ 2008-09-02 23:16 UTC (permalink / raw)
To: zsh-workers
Hi,
I find it anoying to enter ‘alias gd<TAB>’, get ‘alias gdb=’ and if I hit
return to see the definition of the alias, it gets cleared. So I propose
this patch.
diff --git a/Completion/Zsh/Command/_alias b/Completion/Zsh/Command/_alias
index c7b67c4..617627c 100644
--- a/Completion/Zsh/Command/_alias
+++ b/Completion/Zsh/Command/_alias
@@ -19,6 +19,6 @@ if [[ -n "$state" ]]; then
compset -S '=*' || suf='='
type=( ${opt_args[(i)[-+][grs]]#?} )
(( $#type )) && type=( -s $type )
_wanted -x alias expl 'alias definition' _aliases -S -qS "$suf" "$type[@]"
fi
fi
Bye, Jörg.
--
IRC: Der [Prof. Andreas Pfitzmann, TU Dresden] hat gerade vorgeschlagen, sie
sollen doch statt Trojanern die elektromagnetische Abstrahlung nutzen. Das
sei nicht massenfähig, ginge ohne Eingriff ins System, sei zielgerichtet,
und, der Hammer, das funktioniere ja bei Wahlcomputern schon sehr gut.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Remove = in alias completion
2008-09-02 23:16 Remove = in alias completion Jörg Sommer
@ 2008-09-02 23:28 ` Mikael Magnusson
2008-09-03 9:26 ` Jörg Sommer
0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2008-09-02 23:28 UTC (permalink / raw)
To: zsh workers
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1179 bytes --]
On Tue, 2 Sep 2008, Jörg Sommer wrote:
> Hi,
>
> I find it anoying to enter ‘alias gd<TAB>’, get ‘alias gdb=’ and if I hit
> return to see the definition of the alias, it gets cleared. So I propose
> this patch.
>
> diff --git a/Completion/Zsh/Command/_alias b/Completion/Zsh/Command/_alias
> index c7b67c4..617627c 100644
> --- a/Completion/Zsh/Command/_alias
> +++ b/Completion/Zsh/Command/_alias
> @@ -19,6 +19,6 @@ if [[ -n "$state" ]]; then
> compset -S '=*' || suf='='
> type=( ${opt_args[(i)[-+][grs]]#?} )
> (( $#type )) && type=( -s $type )
> _wanted -x alias expl 'alias definition' _aliases -S -qS "$suf" "$type[@]"
> fi
> fi
This is probably what you meant, pasting wordcolor diffs in emails
generally doesn't work out well :).
--- a/Completion/Zsh/Command/_alias
+++ b/Completion/Zsh/Command/_alias
@@ -19,6 +19,6 @@ if [[ -n "$state" ]]; then
compset -S '=*' || suf='='
type=( ${opt_args[(i)[-+][grs]]#?} )
(( $#type )) && type=( -s $type )
- _wanted -x alias expl 'alias definition' _aliases -S "$suf" "$type[@]"
+ _wanted -x alias expl 'alias definition' _aliases -qS "$suf" "$type[@]"
fi
fi
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Remove = in alias completion
2008-09-02 23:28 ` Mikael Magnusson
@ 2008-09-03 9:26 ` Jörg Sommer
0 siblings, 0 replies; 3+ messages in thread
From: Jörg Sommer @ 2008-09-03 9:26 UTC (permalink / raw)
To: zsh-workers
Hallo Mikael,
Mikael Magnusson <mikachu@gmail.com> wrote:
> On Tue, 2 Sep 2008, Jörg Sommer wrote:
>
>> I find it anoying to enter ‘alias gd<TAB>’, get ‘alias gdb=’ and if I hit
>> return to see the definition of the alias, it gets cleared. So I propose
>> this patch.
>>
>
> This is probably what you meant, pasting wordcolor diffs in emails
> generally doesn't work out well :).
Yes, I was to hasty.
> --- a/Completion/Zsh/Command/_alias
> +++ b/Completion/Zsh/Command/_alias
> @@ -19,6 +19,6 @@ if [[ -n "$state" ]]; then
> compset -S '=*' || suf='='
> type=( ${opt_args[(i)[-+][grs]]#?} )
> (( $#type )) && type=( -s $type )
> - _wanted -x alias expl 'alias definition' _aliases -S "$suf" "$type[@]"
> + _wanted -x alias expl 'alias definition' _aliases -qS "$suf" "$type[@]"
> fi
> fi
Bye, Jörg.
--
But in the case of "git revert", it should be an ancestor (or the user
is just insane, in which case it doesn't matter - insane people can do
insane things)
Linus Torvalds <alpine.LFD.1.00.0801041031590.2811@woody.linux-foundation.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-05 8:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-02 23:16 Remove = in alias completion Jörg Sommer
2008-09-02 23:28 ` Mikael Magnusson
2008-09-03 9:26 ` Jörg Sommer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).