nvim-lua/wishlist

Regexp Railroad Diagrams

Open

#38 geöffnet am 1. Feb. 2022

Auf GitHub ansehen
 (5 Kommentare) (3 Reaktionen) (0 zugewiesene Personen) (0 Forks)github user discovery
help wantedidea

Repository-Metriken

Stars
 (249 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

What? I’m a refugee from Atom and I’ve been thoroughly enjoying my experience with Neovim so far. I’m down so a scant few of my favourite Atom features I’ve yet to find answers for with nvim. One of those features is atom-regex-railroad-diagrams 2. With this atom plugin installed, any time the cursor is on a regular expression, a graphical railroad diagram 4 appears at the bottom of the window.

Is there something comparable for neovim? Surely, terminal-based plugins would have to use ascii art or something like that, but perhaps something could be done anyways?

Some cursory googling didn’t turn up much, there’s too much history with vim and regexp search terms to break through the noise of ‘how to regexp in vim’ tutorials.

see also https://neovim.discourse.group/t/regexp-railroad-diagrams/1984/3

Why? Regexp is confusing, railroad diagrams help

Potential existing implementations:

Potential pitfalls: issue linked above - railroad-diagrams library could be adapted, but it wouldn't be trivial

Contributor Guide