Log In  


Cart #fzf-2 | 2024-10-21 | Embed ▽ | No License
3

I built a fuzzy finder. You can quickly search for and open files (anything supported by /system/util/open.lua, so folders, lua files, text files, pods, etc.) Additionally, it can follow .loc files to their destination before opening (which open doesn't currently support), and it can execute .p64 files instead of opening them!

The full code and documentation is available here: https://github.com/Rayquaza01/fuzzy-finder-picotron/

This uses swarn/fzy-lua (MIT License) and mergesort.lua from TheAlgorithms/Lua (MIT License)

Changelog

v1.1 - Oct 21, 2024

3


nice tool!

it didn't work for me at first -- it said "total: 1, filtered: 1". it looks like the default ignore_list is equal to {""}, which decided to filter out "/" and not descend any deeper? I think it should probably skip over empty lines inside ignore.txt

is it possible to say "don't search inside p64 folders" somehow? I'm getting a lot of results like this "/system/exp/exp_system.p64.rom/system/apps/filenav.p64/interf.lua" which tend to pop up often because they have so many letters in them.
edit: setting this as my ignore.txt this seems to work:

p64/
p64.rom/
p64.png/

Ah, I figured there was something I didn't test correctly! The default value of ignore_list was supposed to be {}, but I guess it becomes {""} when it loads the blank file. I'll add support for filtering blank lines from the ignore list.

You can ignore files inside of p64 folders like that, yes. Each line in the ignore file is actually treated as a lua pattern, so you can have more control if you'd like.

My ignore file is

^/ram/compost/.
^/ram/mount/.
^/bbs/.+%.p64/.
^/bbs/.+%.p64%.png/.

This ignores some ram files, and the files inside of p64 files I've downloaded from the BBS.



[Please log in to post a comment]