Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc572812

Browse files
author
skywind3000
committed
Add support for fetching file path in fern file browser for asyncrun plugin
1 parent915e36a commitc572812

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎autoload/asyncrun/locator.vim‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ function! asyncrun#locator#nofile_buffer_path() abort
119119
catch
120120
endtry
121121
endif
122+
elseif &ft=='fern'
123+
lett=bufname('%')
124+
ift=~'\v^fern\:\/\/\w+\/file\:\/\/'
125+
lett=matchstr(t,'\v^fern\:\/\/\w+\/file\:\/\/\zs.*\ze\$')
126+
ift!=''
127+
return (s:windows)?strpart(t,1) :t
128+
endif
129+
endif
122130
endif
123131
ifexists('b:git_dir')
124132
returnb:git_dir

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp