zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "zsh-users@zsh.org" <zsh-users@zsh.org>
Subject: Re: Highlighting the command line based on arbitrary rules
Date: Mon, 10 Jun 2013 08:23:30 -0700	[thread overview]
Message-ID: <130610082330.ZM29057@torch.brasslantern.com> (raw)
In-Reply-To: <CAD77+gThLoy0pvRrEYbMhCEG=-oTXGCJHWv_+3WfRdMwv+EjKw@mail.gmail.com>

On Jun 10,  3:54pm, Richard Hartmann wrote:
}
} this may be approaching the clinically and/or criminally insane, but
} is it possible to highlight sections of the command based on arbitrary
} rules?

Definitely.  Google for zsh-syntax-highlight for an extreme example.

Somebody probably even has a git plugin for that, but it's difficult
to search for, because of course the project is stored in github so
the addition of "git" to the search keywords is not helpful.

One caveat is that zsh-syntax-highlighting is currently known to tickle
an obscure memory management bug somewhere in the depths of ZLE.  We're
still hoping for somebody who can reproduce it to give us a valgrind or
similar debugging output.
 
} My specific use case is to detect git commit message subjects which
} are longer than the recommended 50 characters as such:
} 
}     git commit foo/bar -m 'foo/bar: More gizmos, less snafus, and a
} general disregard of subject length'

Yeah, I've been noticing that a bunch of us old CVS-heads (myself
included) don't particularly bother with including a "subject" in our
commit messages.

-- 
Barton E. Schaefer


  reply	other threads:[~2013-06-10 15:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-10 13:54 Richard Hartmann
2013-06-10 15:23 ` Bart Schaefer [this message]
2013-06-10 15:37   ` Jérémie Roquet
2013-06-10 15:38   ` Richard Hartmann

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=130610082330.ZM29057@torch.brasslantern.com \
    --to=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).