From: Pier Paolo Grassi <pierpaolog@gmail.com>
To: Muhmud Ahmad <muhmud.ahmad@googlemail.com>
Cc: Bart Schaefer <schaefer@brasslantern.com>, Zsh Users <zsh-users@zsh.org>
Subject: Re: Prevent new line when using edit-command-line
Date: Mon, 8 Nov 2021 23:29:48 +0100 [thread overview]
Message-ID: <CAP+y1xCLSinmA=LS1wgAYsbnaRtdZO+OeSBHFFXYq2RVN7spbA@mail.gmail.com> (raw)
In-Reply-To: <CALbcwMmDh0PSPDKUwapGvpvL2=3htQgu+m05z7iPHzFNztCcAA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1068 bytes --]
It would be interesting to make it carry the position of the cursor in vim
to zsh. Vim saves the position of the cursor in .viminfo, so reading it
back from there is a possibility. Another possibility would be to instruct
vim to persist the same information recorded to .viminfo in some temporary
file, and then to read it back. Of course this would require some
configuration on vim's behalf, and not so simple to make it work on every
version, configuration and customization.
Any thoughts? maybe (probably) this has already surfaced
Pier Paolo Grassi
Il giorno lun 8 nov 2021 alle ore 20:15 Muhmud Ahmad <
muhmud.ahmad@googlemail.com> ha scritto:
> Yep, that works exactly as I want it to, thanks!
>
> Any ideas when that will get released?
>
> On Mon, 8 Nov 2021 at 22:57, Bart Schaefer <schaefer@brasslantern.com>
> wrote:
>
>> >> My zsh version is 5.8 (x86_64-pc-linux-gnu)
>>
>> Ah, my apologies ... I'm using the edit-command-line function from the
>> latest git checkout. It works fine in 5.8, grab it and drop it
>> somewhere early in your $fpath.
>>
>
[-- Attachment #2: Type: text/html, Size: 1915 bytes --]
next prev parent reply other threads:[~2021-11-08 22:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-08 7:17 Muhmud Ahmad
2021-11-08 16:46 ` Bart Schaefer
2021-11-08 16:53 ` Muhmud Ahmad
2021-11-08 16:54 ` Muhmud Ahmad
2021-11-08 17:56 ` Bart Schaefer
2021-11-08 19:14 ` Muhmud Ahmad
2021-11-08 22:29 ` Pier Paolo Grassi [this message]
2021-11-08 23:05 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAP+y1xCLSinmA=LS1wgAYsbnaRtdZO+OeSBHFFXYq2RVN7spbA@mail.gmail.com' \
--to=pierpaolog@gmail.com \
--cc=muhmud.ahmad@googlemail.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).