Skip to content

Commit 3158788

Browse files
committed
feat(finder): Improve file search
- Sort chat files now by last access with the most recent at the top
1 parent 3027b48 commit 3158788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/parrot/chat_handler.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ function ChatHandler:chat_finder()
955955
actions["default"] = actions["ctrl-t"]
956956
end
957957

958-
fzf_lua.fzf_exec("rg --no-heading topic --type=md", {
958+
fzf_lua.fzf_exec("rg --no-heading '# topic:' --type=md --sortr=accessed", {
959959
cwd = self.options.chat_dir,
960960
prompt = "Chat selection ❯",
961961
fzf_opts = self.options.fzf_lua_opts,

0 commit comments

Comments
 (0)