nvim-telescope / telescope-frecency.nvim

A telescope.nvim extension that offers intelligent prioritization when selecting files from your editing history.
MIT License
697 stars 35 forks source link

How to read file_frecency.bin using external tools? #157

Closed limaceous-bushwhacker closed 5 months ago

limaceous-bushwhacker commented 7 months ago

Title. I'd like to access the list of files outside of nvim environment.

delphinus commented 6 months ago

@limaceous-bushwhacker

This file contains Lua bytecode, so it is difficult to read it from outside of Neovim.

One suggestion is that we can export a function to load file_frecency.bin to output JSON. Such as,

$ nvim +FrecencyExportJSON +q
{"foo":{"bar":[...]}}

You need such command? What is your usecase?