junegunn / junegunn/fzf.vim

I can not open a file that contains LF in the name

Open
#912 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
10.3k
Forks
608
Avg merge
5d 8h
Merged PRs (30d)
2

Description

- [ ] I have read through https://github.com/junegunn/fzf.vim/blob/master/README.md
- [ ] I have read through https://github.com/junegunn/fzf/blob/master/README-VIM.md
- [ ] I have read through the manual page of fzf (`man fzf`)
- [ ] I have searched through the existing issues

When I create a file that contains LF:

```
echo aaa > "$(printf 'aa\nbb')"
```

I can not use FZF to open it.

One of the workaround that I've found is to use `:edit **/*` instead of FZF

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the provided shell command, then compare FZF's handling of the generated filename with Vim's :edit **/* workaround. Trace the file-opening path used by the plugin and verify that a filename containing LF can be selected and opened without changing the existing workaround behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell, vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.