Skip to content

Completely disable path checking when style is 'none'. #378

Open
@sevanteri

Description

When setting ZSH_HIGHLIGHT_STYLES[path]='none' I think the whole path checking should be disabled. Slightly related to #144, I am having some problems with a FUSE mount, too.

What happens is that when I'm midway writing the path the FUSE mount keeps trying to find the path that doesn't exist. And this is pretty slow.

I don't really need the path highlighting and tried to set the style to 'none' but noticed that it doesn't cut it.

So _zsh_highlight_main_highlighter_check_path() should return 1 immediately if path style is set to 'none'.

_zsh_highlight_main_highlighter_check_path()
{
  [[ "$ZSH_HIGHLIGHT_STYLES[path]" == "none" ]] && return 1
  ...

Or if there's another way, please tell me. :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions