fzf.kak icon indicating copy to clipboard operation
fzf.kak copied to clipboard

[Feature Request] Order buffers according to which has been last used

Open catdevnull opened this issue 3 years ago • 3 comments

catdevnull avatar Dec 30 '21 20:12 catdevnull

fzf is meant for fuzzy selection. Using it as an ordered menu is kind of impractical tbh.

I guess to achieve this, a custom fzf command can be made, that does the sorting and feeds fzf the correct options to force a certain order of the elements.

andreyorst avatar Dec 30 '21 20:12 andreyorst

Using it as an ordered menu is kind of impractical tbh.

I find it's useful for finding files with the files finder, but selecting buffers also works pretty well. I'm trying to figure out how to make Kakoune tell me when buffers were last shown to implement it locally.

catdevnull avatar Dec 30 '21 20:12 catdevnull

maybe not exactly what you want, but I have a recentf function in my configuration, that keeps an updated list, which is sorted. It has a fzf command as well: https://github.com/andreyorst/dotfiles/blob/master/.config/kak/recentf.kak

andreyorst avatar Dec 30 '21 20:12 andreyorst

I'm going to close this, as the solution here is to write a custom module, as suggested in my previous comment.

andreyorst avatar Sep 08 '22 17:09 andreyorst