Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'edit-command-line' undesired behaviour
- X-seq: zsh-workers 53354
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: 'edit-command-line' undesired behaviour
- Date: Tue, 4 Feb 2025 20:57:29 -0500
- Archived-at: <https://zsh.org/workers/53354>
- In-reply-to: <CA+ZMS30DHZMGFmcpS5_ooaUVK=V7wNuX-3JhbikikV28UzV9SA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CA+ZMS31wh2v34jnpVqj0-byAhup2iDNBEObAGT0Q6AUPqcoMrA@mail.gmail.com> <CA+ZMS330RHG33SubZcFybfkDCptUBMcjRzp_B=zR=nEPnejqUQ@mail.gmail.com> <CA+ZMS30DHZMGFmcpS5_ooaUVK=V7wNuX-3JhbikikV28UzV9SA@mail.gmail.com>
- Ui-outboundreport: notjunk:1;M01:P0:SkOK1IuQbbo=;1RKhA/9d0BtTlp/7HE7Z3duOgyX 3ZIcffC7TnX06/yc1bhT16noMsyGrJ0J17m624gMLwXf7qxthsRJC0EPLadOvLRWh0yJ/WcAA NMpnvapGvxgZtHfY16K1Sk6Ka5E0/qVgRZbyWBwtD7G7cymOYeT6J6i7ck/UAXmxT7YlngzGi solEu6B557sg/kviU9u9WI1ilO9QMHBWzYeDNn+vrxlg0fq2hZgIbJlSYpzixgTFISmupejuw Q5IbL9nI9PaS0q2sQG2QzvM5+hk39+sTxdwXyUunCbxH+VBRzGP8ByypmnF1+1crfN+72vG3w uMxB1q4Ym4YXXXafm1CkBpz+hU6laqsRw2oPqKaxKdP2cZeR15O4jQqTKVYpjYPu1foSHi1HF BN12FsJV/XPXEtBssNdsH4CrWO09hSzgNtQI6cdyBaCE2uH+0dcO6+bZvqt/4o1phBM3ztukT Q+qyI1nhWliJ/5qiIpFZDDO1DXfStBRBS7/8U8G1qERcoGNRz155OxZo1bTbg6J3V8gc7DGo8 WQZKd+zjRII7uxV6a7YJipCgBn7MZzNUhs6rfaTiD3mIm0dpRLKgIpZbSrlDlQE79KTshlot6 T0hzoGrcbkyFIIZ7oJx66aeHL2KteAwyq+bNmoViW4AXIHo0V0gqb3wKSCfzLy8dXDgT/IiWs xkqqzbwEMV3dMFOh2PVc3NyIEfz19BScpZ6zbarRDCHGaqX/Q6rKKz+Geim/a54AItfYftszJ DZyb1olTld5gd3bgKoixeBv3br5Hil+RVZUbE8BN0T2BL5p7bk+grUjDCbcTsZ+fXXSL38Ju4 9pGYhRhG2ad5smTEFQNg0UIEv2pIjZNmiZWC+45n3oCdSalZPzjQbtOppDrco1+iIszsP99Wn GF1ODI9yI3j/bY2mKKeD+795S9ze9i4aIosIvsvK6MJbN0sNUBZV/K1G0VgWnQnnJJixbJf8i Gtiq3fZyTzEOvGEMV+DMiDjn2k16sDjYwOlFwiBWcQcSBtQiBbLCaOrHggJFsDDIIuJgXdyDF tuYyhqRbhdh3YcRTcq1qAE3QD2+SgbAhipSW4O0uxicA6Bu78asgKwfvG29pTYh3ibEnKofTD V0NXzRngZ2C81RLyrsrT5TMdb7SD7uxEF1M8bmLfousD+jY6AEmGyQ/YkPA9JL8u9/gNftEKc dKKJAZkyMsYtEhABbqHEp8Y4e04dpQFEgKWoRTX8X+laaXSCtU5ZqtCKIqNIc9c1+jlcw19IN y5exMtPuKtCIN12QzjNOq/dQVNa1y5UWUUmL/Vt4VmNm9BHlm0Z6A1DhITipL3iBU89v5vgVG kmYEIq5BfndJIZQSNzNMthEZbF/IS+zEMjb/cVvDMIfvE6VkcDEjRgMWGf7TUuXDBYefEP2IE LjB0JtIUpOJ+93B1Q7p/ARbYGk66mooJJuGtFrTgbWHZQMwD0eUOa1VG0+
On 2/4/25 5:39 AM, Denis wrote:
Ehh, sorry for spam, noticed another mistake in my reasoning.
Replacing '*vim*' with 'vim' is also a half-baked solution, because it
would prevent custom relative/absolute paths of Vim and additional
option arguments in 'EDITOR' from falling under the Vim glob, and it
would fall under the general '*' glob. This solves the problem of
executable names that include 'vim' as part of their name from being
forced into this case, but the cursor positioning behaviour would be
inconsistent. Therefore, need more advanced regex/globs to account for
this.
Removing these special cases for Vim and Emacs entirely seems like the
simplest solution for consistent and fool-proof behaviour.
I find this regression undesirable, personally.
external utilities matching *(vim|emacs)* /and/ are a likely candidate for EDITOR/VISUAL, the
function transparently handles, like nvim. In the edge cases where that isn't desired, the editor
style can be used to override the behavior by the user.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author