Comments (11)
Had the same problem. It was caused by a folder containing binary data. Excluding the directory through the ignore_pattern flag solved the issue
from notational-fzf-vim.
The problem seems to be shorten_path_for_notational_fzf.py
:
It uses for line in stdin:
to read lines. This fails if the line contains characters that can not be converted to a unicode string (the systems sys.getdefaultencoding()) and the script stops at this point.
I currently disabled this feature by setting g:nv_use_short_pathnames = 0
.
While working on a fix I am clueless what is the best way to handle this. It might be better to treat the lines as pure bytes not as strings and leave them as they are.
if __name__ == "__main__":
for line in sys.stdin.buffer:
try:
line = line.decode("utf-8")
print(process_line(line))
except:
# What to do here?
pass
from notational-fzf-vim.
from notational-fzf-vim.
Facing the same issue here.
In my case, a pdf file in the directory crashed the "indexing process". I removed that specific file and returned to working normally.
from notational-fzf-vim.
Here's an example, you can see player_piano.md and professional_writing.md show up in thesearch, but personal_poems.md and personal_writing.md do not, despite all four being in the same directory.
from notational-fzf-vim.
from notational-fzf-vim.
Nope both files have content inside them
from notational-fzf-vim.
Facing the same issue here.
from notational-fzf-vim.
I'm having the same issue here.
Two terminals next to each other. One with vim. I search for workorder and the file doesn't show up. In the other terminal I open fzf manually and type workorder and it does show up. It's a document I actively use and contains data.
from notational-fzf-vim.
I have the same issue. I've checked with bare fzf I can find the filename, however the plugin doesn't list it. Maybe the error is caused by some illegal byte in assumed utf8 file? I tried to narrow the problem by searching a pattern in listed/omitted files, but didn't have time to debug the script. Is there a simple option to debug the script by printing the data in some intermediate state? It looks like some exception is silently ignored. I can zip my txt files directory and share for debugging.
from notational-fzf-vim.
Had the same problem. It was caused by a folder containing binary data. Excluding the directory through the ignore_pattern flag solved the issue
I can confirm that this is the issue. After moving all binary files out of the directory, it can suddenly find all the files.
For anyone else that wants to get it working right now, go to the directory, type 'grep -rIL .' to find those files.
It would be nice if this could somehow be solved in the addon. I'm not capable of fixing it myself. Somehow ignoring binary files should do the trick.
from notational-fzf-vim.
Related Issues (20)
- Sort results by recent file access HOT 2
- fzf colors and preview HOT 5
- Sanitize/adjust file name on create_note_key HOT 3
- Support "window" position HOT 1
- Struggling to understand how it chooses which line to open the file in
- [suggestion] An option to set a alternative separator when saving new notes HOT 1
- Error on MacVim when choosing the highlight HOT 1
- E492 :NV not an editor command HOT 2
- README.md should explain that `g:nv_main_directory` must also appear in `g:nv_search_paths`
- Force fzf-vim to pass nohidden option to --preview-window to override shell defaults
- Question : pls explain note handler HOT 1
- help confirm mapping HOT 2
- Some files are missing (too many?) HOT 5
- "Command failed" error
- Is there a way to make a single key open or create a note depending on if results are found?
- Proposal to become mantainer of the project HOT 3
- windwos环境上gvim中使用出现Command failed" error
- Notational fzf not finding all results during TMUX session when starting from CLI using an alias HOT 2
- I really liked this tool, but I see lack of maint ? Any alternatives ? I would have supported it if I knew Python or vimscript. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notational-fzf-vim.