Skip to content

Conversation

@galkatz373
Copy link
Contributor

@galkatz373 galkatz373 commented Jan 1, 2026

Added support for frecency (frequency + recency) to the file autocomplete in the cli.

For example after I selected the new file

packages/opencode/src/cli/cmd/tui/component/prompt/frecency.tsx

and opened the file autocomplete again.

Before:

Screen.Recording.2026-01-01.at.23.57.58.mov

After

Screen.Recording.2026-01-01.at.23.55.51.mov

@galkatz373 galkatz373 marked this pull request as ready for review January 1, 2026 22:16
@rekram1-node
Copy link
Collaborator

/review

@galkatz373
Copy link
Contributor Author

@rekram1-node I replaced fs.writeFile with Bun.write, and kept fs.appendFile since bun doesn't have an equivalent. Also, changed the saved path to absolute, so it won't conflict between projects. I also limited the amount of entries in the new jsonl file to 1000 entries

@galkatz373
Copy link
Contributor Author

@rekram1-node The PR is ready now

@galkatz373
Copy link
Contributor Author

@rekram1-node some updated dependency broke the typescript. fixed now

@rekram1-node
Copy link
Collaborator

/review

1 similar comment
@rekram1-node
Copy link
Collaborator

/review

@galkatz373
Copy link
Contributor Author

@rekram1-node I don't think the review command worked

@galkatz373 galkatz373 force-pushed the galkatz373-feat/frecency-file-autocomplete branch from 30d56df to ab7bfab Compare January 5, 2026 19:41
@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

lgtm

@rekram1-node rekram1-node merged commit d4e7a88 into anomalyco:dev Jan 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants