Skip to content

Match by filename does not work on Windows #45

@Grueslayer

Description

@Grueslayer

Because the filename strip is done with the slash "/" as separator, it does not work under windows using backslash "\".

Possible solution for pymatcher.py

  def filename_score(line):
        # get filename via reverse find to improve performance
        shellslash = vim.eval('!exists("+shellslash")?"/":&shellslash?"/":"\\\\"')      
        slashPos = line.rfind(shellslash)    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions