zsh-workers
 help / color / mirror / code / Atom feed
* Reserved namespaces
@ 2023-03-11  4:56 Bart Schaefer
  2023-03-11 10:00 ` Sebastian Gniazdowski
  0 siblings, 1 reply; 7+ messages in thread
From: Bart Schaefer @ 2023-03-11  4:56 UTC (permalink / raw)
  To: Zsh hackers list

On Thu, Mar 9, 2023 at 9:13 PM Bart Schaefer <schaefer@brasslantern.com> wrote:
>
> We're suggesting something like
>
> .zle.layout=$'\n\n\n\n\n\n\n\n\n\n\n\n\n\n etc etc'
>
> and then the spdist function would read the value of that variable.

There are at least 8 existing parameters that could be mapped into a
"zle" namespace:

zle_bracketed_paste
zle_highlight
ZLE_LINE_ABORTED
ZLE_RECURSIVE
ZLE_STATE

ZLE_REMOVE_SUFFIX_CHARS
ZLE_RPROMPT_INDENT
ZLE_SPACE_SUFFIX_CHARS

There are a couple of dozen more like BUFFER and CURSOR that could be
in "zle" but might fit better in a "widget" namespace.  Of course it
would be a while before we could retire the existing names, and
because most of those variables act like locals there's less benefit
to isolating them.

It occurs to me that the CORRECT options and their behavior do not
depend on ZLE being active, so it might not be appropriate to put
keyboard layouts in that namespace.  There are also the parameters
CORRECT_IGNORE and CORRECT_IGNORE_FILE to consider.  Reserving
"correct" as a namespace feels odd as well, but I think mostly because
it can be used as both a verb and an adjective.  Other ideas?

Other namespaces to reserve?  For example there are a number of
variables starting with "zsh" though again there'd be a long period of
overlap.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-12 19:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11  4:56 Reserved namespaces Bart Schaefer
2023-03-11 10:00 ` Sebastian Gniazdowski
2023-03-11 19:47   ` Bart Schaefer
2023-03-12  9:24     ` Sebastian Gniazdowski
2023-03-12 13:54       ` Eric Cook
2023-03-12 16:46       ` Sebastian Gniazdowski
2023-03-12 19:24         ` Bart Schaefer

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).