tweekmonster / fzf-filemru Goto Github PK
View Code? Open in Web Editor NEWFile MRU with fzf.vim
File MRU with fzf.vim
First of all, I really love this plugin! It was exactly what I was missing before, when working on large projects. So thanks for that!
As for my question, when I start :FilesMru
all entries are nicely sorted so that the mru
entries are all at the bottom. But if there are a lot of mru
files and you try to filter the list by typing in a few characters it looks like the ordering of fzf
takes over and ignores mru
entries.
So now the mru
entries are scattered all over the place. It would be really nice if they would alway be ordered at the bottom, even when being filtered.
:FilesMru
shows only mru files but no other files from :Files
command
I'm not actually sure about whether this is a good idea or not, but I was thinking that we never a buffer is entered and/or created (that has a filename), they MRU list should be updated so the current file we will be at the start of the list.
The reason for this is that I may not open a file using fzf. For example I may open a file using nerd tree, which I would not be considering when a close the file and realise I want to reopen it. When a close one of them, I want to be able to use fzf mru to reopen it.
Another reason to consider is that I may open Vim from a session, which opens many files at once, neither of them from fzf. When a close one of them, just like the above, I want to be able to use fzf mru to reopen it.
What do other people think of this idea?
When listing my files using :FilesMru
, and select the desired file, I type ctrl-v or ctrl-x to open it in a window, but it does not work. I could not found where is the problem.
When using any FZF vim command (https://github.com/junegunn/fzf.vim), it works.
Can anyone help?
I want all mru files to be listed, not only the ones pertaining to current directory.
Ofcourse as always non-mru files should be restricted to current directory only.
How can I achieve that.
Currently when I run :FilesMru
it displays 3 mru files at the bottom ๐ then above all other files. If I start typing it will search through the entire list. Is there a way to either only show mru files or to first search in the mru files ?
Thanks :)
Just a heads up that the latest fzf.vim refactor (#6d1916197c24 - #5a088b242693) of the wrapper seems to break this. Reproduce by running fzf.vim and this from head.
Note that i superchared fzf with ripgrep https://medium.com/@crashybang/supercharge-vim-with-fzf-and-ripgrep-d4661fc853d2
Hi,
What are your thoughts on adding an option to remove the current file from the MRU list? Since it's already open, I would never select it.
Thanks for a neat plugin, decent MRU support has been the one thing I've missed since switching to FZF.
Is there a way to customize fzf using the various suggestions on their wiki?
For example, I like this preview option which looks great, but it doesn't appear with your plugin:
command! -bang -nargs=? -complete=dir Files
\ call fzf#vim#files(<q-args>, fzf#vim#with_preview(), <bang>0)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.