ctrlp-py-matcher icon indicating copy to clipboard operation
ctrlp-py-matcher copied to clipboard

Match by filename does not work on Windows

Open Grueslayer opened this issue 6 years ago • 0 comments

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)    

Grueslayer avatar Aug 16 '18 10:08 Grueslayer