zsh-workers
 help / color / mirror / code / Atom feed
From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Re: [PATCH 0/2] _pandoc: avoid use of cache, etc.
Date: Thu, 27 May 2021 22:37:24 +0000	[thread overview]
Message-ID: <9167a03c-aee1-437e-85cd-53783868f548@www.fastmail.com> (raw)
In-Reply-To: <4721-1622153149.240316@WPfm.XbkI.5kzM>

Oliver Kiddle wrote on Thu, 27 May 2021 22:05 +00:00:
> I don't think so - they are editor specific and we only have them in a
> couple of files rather than them being consistently applied across many.
> Various editors, including vim, can parse a file to place folds where
> they make sense syntactically. And I don't think we should have editor
> specific markers for options either. That's what .editorconfig is for.
> 
> This patch removes vim markers in _pandoc and a couple of other
> completion functions. They can also be found in files below Functions

Where?  I don't see any {{{,}}} fold markers under Functions/.

> but I've not touched those.
> 
> I'm open to other views if someone thinks this stuff would be useful.

The diff hunks for _bpython and _pandoc look good, but I don't agree
with removing the fold markers from _cdrdao.  The fold markers in that
file can't be inferred from machine parsing, or even from naïve human
parsing; they were placed by a human familiar with the file.  Please
keep them.

If we do keep fold markers, then of course users of other editors are
welcome to add equivalent markings for their editors.  I don't think
that will grow unwieldy (and if it does, we can deal with it then).

If the fold markers interfere with "Jump to the matching curly brace"
functionality in editors that don't ignore matches in comments, the fold
markers could be changed to something other than curly braces.

Cheers,

Daniel

> +++ b/Completion/Unix/Command/_cdrdao
> @@ -2,7 +2,7 @@
>  
>  # TODO: Options must come before parameters.
>  
> -# Command completion and main loop {{{1
> +# Command completion and main loop
>  
>  _cdrdao () {
>    local ret=1
> @@ -23,7 +23,7 @@ _cdrdao () {
>    return ret
>  }
>  
> -# Common arguments {{{1
> +# Common arguments

  reply	other threads:[~2021-05-27 22:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-25 15:05 Jun. T
2021-05-27 22:05 ` Oliver Kiddle
2021-05-27 22:37   ` Daniel Shahaf [this message]
2021-05-27 23:12     ` Oliver Kiddle

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=9167a03c-aee1-437e-85cd-53783868f548@www.fastmail.com \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-workers@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).