From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7365 invoked from network); 8 Nov 2021 22:31:15 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Nov 2021 22:31:15 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1636410675; b=qn2dwE12oT2Q2FWWU/uEB24qpHLh+I3On+nT5MIKDE0OYhdaKkJfUXSRPDGyqkcC+UNAHz1bKp yIHdc/JX1Ehl7J7ZgXD8rWtCR6z6jQVK0pYXaCmOkN/8rWyCIvPRDmFgu94XlJqGbRD1Q/OIpy saVmZw/+asfTntgwfPM3LeTHPB/40iv6MhcOPEzygduj+q8yjfwlvJGg39u4llD3udWsawfHN6 mvqdSD7TTjtz36Y4+CGS9usg6Vy138kOBgetjtvOTDXOXoCKMer5Z7VsAncIXdHYcTb6n1kIVc jv4YGHlHA/BL4fNN2vW1qxVbCmW+cNtb6veaOhQNn6bQ+g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-il1-f177.google.com) smtp.remote-ip=209.85.166.177; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1636410675; bh=j499mIjjAYAprmSDEGzxoSDuDhIdAmvaVi7bIwTb/Hg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=RqLd7VEULhEURE9BXnmatcovLWTu8S7gQAxCznmdRBc0QDFi3blYRNPi0RXhzGXelVBl+vhllb 0d4FNU7z1JOf2ZITcDVc+1sML1j9nB2bhG8tgCQm458DJUH6iWqIqMIQsI/Kk4BHznFPAqyidZ ExEUq5c54RYnCbLpU4LDVu6Pys1ind+1GT9+PNNelzPgNiN8xfJ+1eyjZvzTH+ZGdONoBlSF1Q +UDZSSj1lzkXuqpKKqd35z9kBERx0I3XO60Uio99ZEqpBPI88Wedk+3V/lhiDlY59qQZkhOShE yTg2VsayDWP2+piUBULyrhVYTWgvVazxJb7I658brLq81w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ZywdPnijSDLOfw2vHCXPMcIOd8H3GHwekCSlhNphBlY=; b=O24p8xTj41LUkId1WVB9osANEb AeuBiXwPILwJCbLHP1dpYY9DHcVtt9iLgmvfl3UGXgi/nu1guaVo1GdI86bgQ7juBlzgdFw732pbT MOTSPw+zXoioj/ufsFoU8voaadm8a8HCPpi2A1aTdK1cdkmEre3EwK70g+bCqjGnwc+LbgR8GPY2L G5N6SDKJ0ZivvtRonGvoG+glJ6Zfjv7pD/9udN+8x0BKwG0vehgFau5weDGfv9z2VHa6aFPCouMYQ vVzfPaiFGMu3XBDSOTLynG1fQi8c34DvC2c7yQTLJYiL3lM68EAerioGWVwP/8xVScAJ4MBzXRJRz r43CEZxw==; Received: from authenticated user by zero.zsh.org with local id 1mkDAY-000JFw-3y; Mon, 08 Nov 2021 22:31:14 +0000 Authentication-Results: zsh.org; iprev=pass (mail-il1-f177.google.com) smtp.remote-ip=209.85.166.177; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-il1-f177.google.com ([209.85.166.177]:37388) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mkD9n-000IZA-2u; Mon, 08 Nov 2021 22:30:27 +0000 Received: by mail-il1-f177.google.com with SMTP id h23so18615047ila.4 for ; Mon, 08 Nov 2021 14:30:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZywdPnijSDLOfw2vHCXPMcIOd8H3GHwekCSlhNphBlY=; b=l4FjYAzRHqc50I4l2ydekV35Nphan8bc0yflyt6MaaPpfN1Y1TgNDNZb4Jtar3ZuFL zrlc5hnI/xV9LuX99XRoHpNJ5E6efiFW8SsJOwuqAvCiH3uVaooyZHTdCiU+wkxeFKsu k1OW650wpJm+15uqJKSRpaIJIS56dqt8icLUbt2Y2jlinbBIodeW6OyeQGCW/hM8aMiO KkzIOXHjYcRlh84Egfu93jrEEuAUSvaPm6ilz5LKJTP5NWO6Y5TeCcCA+Owj7u3lM1sS BuWcyzGmN5ewpe9wt6sXe7PimltoKS0e87cRbNjza45TFhJbk07yVzq2IYqIvrYamM2y CLHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZywdPnijSDLOfw2vHCXPMcIOd8H3GHwekCSlhNphBlY=; b=RMCBXEiWRsM58g4LT8sZUglls24IOqRbgw3hCy2gcqXLVHueIrtU9YvhdcQ4yvRyaN qOnBzOrAhfdPpQZwoDM1A7NCbg0aQ4wdIpmhGWQmSgqK+gOouVr4gHdIc0NmDAVt5VK7 7sP0QhYq4EPejQ2TelCTIP74tpygYXLux48f3AYmFrXzCIeFfZRnVQGpT2ZmMOCTU4II iLgleJ4X6G9zUp0wu238j4B9Paofl0yACAvP1Xk3IaxW4mJWe3yCTC1N/mz0CbvFPrN6 FvFpxm8kL7CSoXKhc29Ros0Q/5mgr7l6msF1vgdl4KdVy8UcbhxVSelJ77um+VHxmcEV qXKw== X-Gm-Message-State: AOAM530I8UlNQW8H11z0MeXWH7cPi1B0mDEZjd6Iod+u3ERnmXLk4SxP sCsixA7FARQw9NQUHb5bTqhRaggSXW4A9p89kgs= X-Google-Smtp-Source: ABdhPJzU//3+XJhMDyOfUk4dxvttlc6JaGkhz2Op+ZPK+yfMAqYlMHuWTvTUzB8b3iSLH6BT6ns61ZWikyUpFn0cOfE= X-Received: by 2002:a92:cd84:: with SMTP id r4mr1796755ilb.137.1636410624732; Mon, 08 Nov 2021 14:30:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Mon, 8 Nov 2021 23:29:48 +0100 Message-ID: Subject: Re: Prevent new line when using edit-command-line To: Muhmud Ahmad Cc: Bart Schaefer , Zsh Users Content-Type: multipart/alternative; boundary="000000000000fe73c505d04e894f" X-Seq: 27330 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --000000000000fe73c505d04e894f Content-Type: text/plain; charset="UTF-8" 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 > 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. >> > --000000000000fe73c505d04e894f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 .vimi= nfo, so reading it back from there is a possibility. Another possibility wo= uld 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 req= uire some configuration on=C2=A0vim's behalf,=C2=A0and not so simple to= make it work on every version, configuration and customization.
Any t= houghts? maybe (probably) this has already surfaced=C2=A0

Pier Paolo Grassi


Il giorno lun 8 nov 2021 all= e ore 20:15 Muhmud Ahmad <muhmud.ahmad@googlemail.com> ha scritto:
Ye= p, that works exactly as I want it to, thanks!

Any= ideas when that will get released?

On Mon, 8 Nov 2021 at 22:57, B= art Schaefer <schaefer@brasslantern.com> wrote:
>> My zsh version is 5.8 (x86_64-pc-lin= ux-gnu)

Ah, my apologies ... I'm using the edit-command-line function from the<= br> latest git checkout.=C2=A0 It works fine in 5.8, grab it and drop it
somewhere early in your $fpath.
--000000000000fe73c505d04e894f--