Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Cursor location after completion with matchspec
- X-seq: zsh-users 23741
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Cursor location after completion with matchspec
- Date: Sat, 3 Nov 2018 17:15:22 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id :mime-version:content-type:content-transfer-encoding; s=fm1; bh= XYBQ4Azc4uJgzIftIDCOxCv2G6O4y3AhuwYivnIoTiE=; b=FI2uN2CxZMODSbGq RmKjIN+BNwEKUWZh64hpxkyvvqRD9wnedAqAFpca2y68ILiQntnCLPlBSV+/cdw0 iiR/A5TziZw2udfUiHopM0x6RT6jGCqgVhCbLMwDYET3mLfYyhVgSflol2lG/X2d gygAGHKhODkSSxP+kUE512GDuFyardGWD98rbaxT5lh/JFU3ABvR8P5VgqpxbjmZ 5me7EHNFyo2zmZsoOtmtLPPkNbmLtq1FF/2b8P8OVa2b3HusmrpA9pk+7iy9hYWH seKbRHy2Zoh4BRoNuF6s8iThsdG3OSijnu+VoO7C5XMmOhjb5XE6O2n8ed8+OCoJ zjIsLw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=XYBQ4A zc4uJgzIftIDCOxCv2G6O4y3AhuwYivnIoTiE=; b=imZFiBzilOScYO8tv2BTGM IGV4QGmu17rmNbWYiWonj6bxqKD7gE5C0UqIdHvWu/rFNBnKyomd9cUwHtbRl88z nXThR6iuiYK7km+UMsVjVQKtXsAQylK89cWUeNRuHb7qkAeZ0bBPwvxRWgiCBfzI fg8eiecMfOOfztmObaFXxCRYVtbh1ChVnfp3ME0DN/1tMVb4GpJ/PO6sjgrvbyzS mebLnCL57O/fjFSYhCsicWSi53M2A5RctmXeUP9Jdpz4XncxNdz8uwJKET015qs3 Iz2/Me6jP2S+9MJQp8aU/rEIhncjKTFErmjVZWTkDqQE0AnGkHHByREOa0pe5rPg ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
$ zsh -f
% _f() { compadd -M 'r:|[_-]=* r:|=*' foo-bar foo-lorem-ipsum }
% compdef _f f
% f <TAB>
% f foo<CURSOR>-
Would it be possible to have the completion result in «-foo-<CURSOR>»?
As it stands now, I can type «-» to get «foo-lorem-ipsum» but to get
«foo-bar» I have to press <forward-char> which means leaving the home
row.
This is a reduced example of «_arguments -foo-bar -foo-lorem-ipsum».
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author