Comments (10)
Tested and Confirmed. The change above fixed the issue.
Thanks
from fzf-filemru.
Thanks @dareenzo, this appears to be related to #4. I think I understand this problem now since you specifically mentioned MacOS. The script that generates the file list uses echo -e
and it looks like the -e
flag isn't POSIX and not available in the MacOS echo
command.
This should print git
in yellow in your MacOS terminal:
printf "\e[38;5;3mgit\e[m\n"
I'll update the script to use printf
instead.
from fzf-filemru.
This should now be fixed in d76b2ea
from fzf-filemru.
@dareenzo May i ask how you got this plugin to setup on mac os? On my setup it does not show the most recent files, just the list of files in the current directory
nnoremap F :FilesMru --tiebreak=end
from fzf-filemru.
@dareenzo May i ask how you got this plugin to setup on mac os? On my setup it does not show the most recent files, just the list of files in the current directory
nnoremap F :FilesMru --tiebreak=end
from fzf-filemru.
@dareenzo May i ask how you got this plugin to setup on mac os? On my setup it does not show the most recent files, just the list of files in the current directory
nnoremap F :FilesMru --tiebreak=end
from fzf-filemru.
I got it like below, and I'm sharing between Linux and MacOS
nnoremap <c-p> :ProjectMru --tiebreak=end<CR>
let g:fzf_filemru_bufwrite = 1
let g:fzf_filemru_git_ls = 1
let g:fzf_filemru_ignore_submodule = 1
from fzf-filemru.
Interesting. When i bring up the menu i get this which is just a list of all the project files without any of the most recent ones
Just looking at the readme, tdid you have to set XDG_CACHE_HOME
?
from fzf-filemru.
Now that you mention it, I checked again and you're right. I don't get the MRU either on Mac. I get it only on Linux.
I do have a file and a folder created at ~/.cache
related to MRU (fzf_filemru, fzf_mru), but I don't have the XDG_CACHE_HOME
variable set.
Probably @tweekmonster can clarify more on the setup requirements.
from fzf-filemru.
@dylan-chong @dareenzo The script will sort out the paths if that variable isn't set. The actual problem is that POSIX awk doesn't support the systime()
call https://github.com/tweekmonster/fzf-filemru/blob/master/bin/filemru.sh#L43
gawk supports systime()
, so I made it a "requirement", but I didn't really like it at the time. I recently noticed the issue myself since I upgraded my laptop but didn't install gawk.
This should fix the issue:
diff --git a/bin/filemru.sh b/bin/filemru.sh
index 541437d..3914b98 100755
--- a/bin/filemru.sh
+++ b/bin/filemru.sh
@@ -42,3 +42,3 @@ update_mru() {
BEGIN {
- ts = systime()
+ ts = '$(date +%s)'
ts -= (ts % 120)
The problem with this is that the POSIX date
program doesn't support the +%s
format. It works with GNU date
on Linux and in MacOS's non-GNU date
, so that's probably enough for now since I'm still unable to find a fast and reliable way to get a unix timestamp from bash using only POSIX programs.
from fzf-filemru.
Related Issues (12)
- [feature request] Add option to omit current file from MRU list HOT 4
- Ability to update mru list when entering a buffer HOT 3
- Q: Is there a way to always have the `mru` entries ordered to the bottom? HOT 1
- How to pass arguments to underlying fzf? HOT 3
- Only show MRU files
- Only current directory files shown HOT 1
- :FilesMru shows only mru files HOT 1
- Looks like the fzf.vim refactor that just happened breaks this. HOT 3
- How to display a cleaner file list HOT 3
- Ctrl-v and Ctrl-x does not work on Fzf-filemru HOT 2
- Why is the perfomance 3-5x times slower compared to stock :Files command? HOT 4
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 fzf-filemru.