Skip to content

[BUG] unexpected errors when cursor is not at the end of the token #11

@Samsu-F

Description

@Samsu-F

Description

In the following description, I will be using the § character to show the cursor position at the time of triggering the plugin.

§ls -a

Expected behavior: ls man page is shown

Actual behavior: Error No command found


l§s -a

Expected behavior: ls man page is shown

Actual behavior: Error: No manual entry for l


ls -a§| cat

Expected behavior: ls man page is shown at the explanation for the -a flag

Actual behavior: no match is found so the ls man page is shown without a search

Environment

Please provide the following information:

Zsh version: zsh 5.9 (x86_64-pc-linux-gnu)

Plugin configuration:

ZVM_MAN_KEY: K
ZVM_MAN_PAGER: less
MANPAGER: 
PAGER: 
LESS: -r -q --no-vbell

Plugin manager: manual

Other vi-mode plugins:

  • zsh-vi-mode
  • Other (please specify):

Operating System:

  • macOS (version: )
  • Linux (distro: Manjaro)
  • Other:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions