From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sMjZOdXkPWQXWQAASxT56A (envelope-from ) for ; Tue, 18 Apr 2023 02:31:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cMfUOdXkPWQXowAA9RJhRA (envelope-from ) for ; Tue, 18 Apr 2023 02:31:17 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5AB7BF4EC for ; Tue, 18 Apr 2023 02:31:17 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 19C455F38D; Tue, 18 Apr 2023 00:21:53 +0000 (UTC) Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by mail.notmuchmail.org (Postfix) with ESMTPS id E736F5F35B for ; Tue, 18 Apr 2023 00:21:49 +0000 (UTC) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-187993bab0cso53128fac.3 for ; Mon, 17 Apr 2023 17:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681777308; x=1684369308; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=BBnXxcvlZEOvAc8OybQrh3JIWfQ7arYWPT1L6ypjLLM=; b=lNTKWNc2SJMy0BJ8BNP7RFaBsKYQxkZmPXFQFh+dNhATSWhKJPvYKO8djqySp3TlBe rrIQ1Cm7aX33lRivvKSEUgNE+2L6H0opVQ15YFnKhvYBM9a/1tGPrA6Usym6op1HlUDq nZWZftCMA/M7T7JU7nRT4QPoer9xnYtj8FUtAiIbwFWFZhdKvasZameerSmfjWtN22Di OxhTUCthIP+zeSy25r54iUtu9XLzqxi3VMhLPA89l1lV4dk0WtLxSYSGsGqTDYZZlKVC k097AFh4JXcZDJi8PziollgUkEUlbSoOjeyu4W/G6HCFkn9BMUKwgZxHg08zRvEqiEBf sYdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681777308; x=1684369308; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BBnXxcvlZEOvAc8OybQrh3JIWfQ7arYWPT1L6ypjLLM=; b=gTzBGZ71n1zrdjxpSwbVouNskrhNjatd3UibF0ko0fIzM/Y4acI3427bGqYT2kwN83 4GttXkt+QgYVUnZL3XJiKB2uIem8/vhl6I/HPwEgoiOGx5cby2VuTKsNZQTvJeKZrhR9 rmhqUm0jdfV9WYY+Vl3cus1ZbQMczmUQhRvFJBZtDPjLQqjDQsLh/ZlRA4UePk+27eib DvI6KoIsjZWhIPXamtb6HiFzLtstbjYHqTeVlaO/LIcOeBqiElGMyryRMHYLWQGGx6Aq Tuvhw+OyGQU5CVkOp9k7T0hI1I99EHA4BVJzm76o1ZCVd2aaMGq+zpbWcH+AgSfc9Kj1 ehbQ== X-Gm-Message-State: AAQBX9cSwSq3HOtcW/1Ru+gLzq3aSuA4QYiHZLY/0rQXXHWaP07n0vnL thTBe/j4SB7emS27nsuNSiOpEMZ6B4o= X-Google-Smtp-Source: AKy350YdPqkgjGIZmKAQSyZk9FyVNeagKtIZ1CFsqm41lsYDhcK74Z3FRQQr3HxgQaFkaCiDjrh5Lw== X-Received: by 2002:a05:6870:c1cb:b0:177:a92e:ee6 with SMTP id i11-20020a056870c1cb00b00177a92e0ee6mr149758oad.54.1681777308350; Mon, 17 Apr 2023 17:21:48 -0700 (PDT) Received: from localhost ([2806:2f0:4060:fff1:4ae7:daff:fe31:3285]) by smtp.gmail.com with ESMTPSA id v14-20020a056870e28e00b00183f77dcdadsm5124315oad.33.2023.04.17.17.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 17:21:47 -0700 (PDT) Date: Mon, 17 Apr 2023 18:21:46 -0600 From: Felipe Contreras To: Ralph Seichter , notmuch@notmuchmail.org Message-ID: <643de29ada33f_995029483@chronos.notmuch> In-Reply-To: <87jzyab8uy.fsf@ra.horus-it.com> References: <87h6tfjjuy.fsf@ra.horus-it.com> <643d3e7389719_751a294db@chronos.notmuch> <87jzyab8uy.fsf@ra.horus-it.com> Subject: Re: Recommended method to pair Notmuch with Neovim? Mime-Version: 1.0 Message-ID-Hash: CFVXNGD2M2UPU47A2XQCCNHM6QP23F4C X-Message-ID-Hash: CFVXNGD2M2UPU47A2XQCCNHM6QP23F4C X-MailFrom: felipe.contreras@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681777877; a=rsa-sha256; cv=none; b=mMvuHBw1Qfpj58DoEzNEH2uuXTM26q+753wkNBoI5jN0+xdPOhQixnhyJQMHpF4LFN7TjW KX+gzwPXjnRa45fZcCUYtOTLxnJfUd6k0OiXarLpC6wKmysS9/hFUTWJ5sRf779MTOt4dv /zAVI9K35cVvBgxqSDQY099g6nm5SMTCY1ZlFY4qbJdsX3GMnb1qEWt0km+H1j0BFiLzmD TwzHOxzGVeR8piun+7uFIo77gNoKHajuABzEtpe4lgRdrgeyAGjEAWOv+qcWIy3nTyfA7h w2pjDUpzwAgoGJt3Ra1PVjA7HuUh1KWnGHQDX3ogNKyx3K9KsdNb8ASnc0kC5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b=lNTKWNc2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681777877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5rLP9JjppNpiwsTayThvgIADEbGO2OODJtikRGNPWjw=; b=DpSFAIQiAK8U/KSfdy3BIkcLdG4OHj27829atzM6YRO9VaioE1ArwmCv5aKhxREWsCYghM zM3/wSZjs4uZ0fel1PlIMtwtQK+lIhg8QFFQ0wqVIsTCEDYuUMqxau97LBzD9Xr8J3pzOq IAdnuxKCrVC5syELyEz6+4ASIWkpiLeQVhvxA7kPRG5+mctIX/H4XzC80tcGDZK92yGgYa 1m+CyWdM4/tzH7v/4Synv//XTOUcfpsTUlmh+VH+lYWDZO4QRpGR6LxacbhPVdKm/FtXCb 7knJgZ80dhU08VLjs7DO0/ZYAycjzEwJxUaW2jJVOzhxMKE57Dtd6Qoy+UpqWw== X-Migadu-Queue-Id: 5AB7BF4EC X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b=lNTKWNc2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 8.54 X-Spam-Score: 8.54 X-TUID: AVqNwQQ3fyRi Ralph Seichter wrote: > * Felipe Contreras: > > > There hasn't been any development because to be frank it just works. > > I did not mean to imply that "no repository changes" is necessarily a > bad thing. However, Neovim being quite volatile, I intuitively expected > some form of development for notmuch-vim being necessary to keep things > working. I don't see why. neovim aims to support most of what vim does. And I said: I don't use neovim (yet). > > I've also started to rewrite it from scratch because a lot of it I > > think can be done in a much simpler way, but that doesn't really > > affect the users, it's just the maintenance of the code. > > That tells me you are still invested in the subject, which is a welcome > thing to read. > > > I tried notmuch-vim on neovim with ruby support some time ago and it > > worked fine. I think there was some issue with slowness, but they > > fixed it. I don't really remember. > > I set up a virtual Ubuntu 22.04 Server with Notmuch for testing, and > managed to get Ruby 3 support for Neovim [1] working. I then used your > plugin via the "Lazy" package manager for Neovim. Some of the basics > work. Navigating and searching look OK, but I have yet to manage to send > email. So far, message bodies are always missing, so it is not usable > yet. Neovim keeps reporting tons of errors when I try to compose and > send email, and I have not yet delved deeper. Did you install the "mail" gem as the installation instructions recommend? % gem install mail It should actually be a requirement, but I haven't updated the instructions to say that. > > One alternative that I considered is to rewrite notmuch-vim in lua, > > but that would probably require some libnotmuch bindings for lua, > > which would take considerable amount of time to write. And that would > > only work for neovim, not vim. > > From what I understand, Vim 9 introduces a new, proprietary scripting > language, while Neovim uses LUA? That seems to foreshadow lots of work > if one wishes to provide plugins that work with both editors. But you don't have to use Vim 9. The old language will keep working. > > It might be better to just keep using ruby. It's a fantastic language, > > there's already pretty good bindings for libnotmuch, and it works for > > both vim and neovim. > > Ruby may be a worthwhile language, but in this particular scenario of > Neovim and Notmuch, I see the end user's perspective: I don't need Ruby > to run anything but notmuch-vim, so I don't want to install Ruby on > various systems if it can be avoided. Ruby is already installed on most systems I use, and it's only like 10 MiB. I believe one should use the best language for the task, and in this case that language is clearly Ruby. > I'll do it if there is no alternative, but LUA sure sounds better than Ruby > to me. Selfish, I know. ;-) It sounds better to you as a user. Just try to program a paginated list of items in Lua and you might change your mind. > > I think you should just give it a try. > > I began my experiments, but as stated above, I ran into issues that I > have yet to figure out. > > Thank you for your response and for your plugin, Felipe. I would try in vim as well, just so you see how it's supposed to work. To be frank notmuch-vim is so superior to anything I've used, that even if I move completey to neovim and it doesn't work there, I would keep using vim just for this tool. Cheers. -- Felipe Contreras