emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] `completing-read`: Add `group-function` support to completio


From: Daniel Mendler
Subject: Re: [PATCH] `completing-read`: Add `group-function` support to completion metadata (REVISED PATCH VERSION 3)
Date: Mon, 3 May 2021 16:40:53 +0200

On 5/2/21 11:49 PM, Juri Linkov wrote:
> Thanks!  Now separating the groups completely using full-width group 
> separators
> for the vertical format allows enabling outline-minor-mode and using
> TAB/S-TAB keys to hide groups for better overview in a large buffer.
> 
> I tried (setq outline-regexp " ") to match the space character
> at the beginning of group titles to find outline headers,
> and the result is quite nice:

Thanks! That's a nice advantage of the layout you proposed. In case one
wants to use outlines it may be better to configure the group titles a
bit differently, such that the outline regexp is less likely to give
false postives.

(setq outline-regexp "###")
(setq completions-group-format
      (concat
       (propertize "###" 'invisible t)
       (propertize "    " 'face 'completions-group-separator)
       (propertize " %s " 'face 'completions-group-title)
       (propertize " " 'face 'completions-group-separator
                   'display '(space :align-to right))))

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]