This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script to list recent files and open nvim using fzf | |
| # set to an alias nlof in .zshrc | |
| list_oldfiles() { | |
| # Get the oldfiles list from Neovim | |
| local oldfiles=($(nvim -u NONE --headless +'lua io.write(table.concat(vim.v.oldfiles, "\n") .. "\n")' +qa)) | |
| # Filter invalid paths or files not found | |
| local valid_files=() |
OlderNewer