Daniel Shahaf

Results 356 comments of Daniel Shahaf

> For the second one, it's related to some default zsh settings that I turned off in my configuration, so it's not reproducible in clean environment. If I ever get...

Please give a self-contained description of the problem, or of the desired additional behaviour. Are you just asking for a way to disable the "this word is a filename or...

If you press `` at the point where `reboot` is shown in red, does it (a) run `reboot`, (b) error out saying it can't find the command, or (c) something...

So, sort ZSH_HIGHLIGHT_HIGHLIGHTERS the way around (`brackets` before `main`)?

Sorry about that. Two other ideas: - Skip adding highlighting for a pair of brackets if either of them is already covered by a $region_highlight element for which `$((end -...

> While that solves the mentioned issue, doing that is equivalent to > turning `brackets` off :smile: Now you're just moving the goalposts! :) > * No warning for unbalanced...

https://github.com/zsh-users/zsh-syntax-highlighting/blob/caa749d030d22168445c4cb97befd406d2828db0/highlighters/main/main-highlighter.zsh#L1215-L1221 That `arg0` is returned, just like the comment says can't happen.

As is this one: https://github.com/zsh-users/zsh-syntax-highlighting/blob/caa749d030d22168445c4cb97befd406d2828db0/highlighters/main/main-highlighter.zsh#L1250-L1252 I guess the surrounding chain of if/else's needs to account for the possibility that $expanded_path is an executable non-directory without slashes and `$path` doesn't include...

Duplicate of https://github.com/zsh-users/zsh-syntax-highlighting/issues/223. (Though to be fair, I remembered that issue was labeled needs:lookahead, so it was easy for me to find it.)

> when I try to unmount the file system in question, the path highlighter (that causes underlining of the path if it is valid) causes zsh to hang. FWIW, if...