Repository navigation
Add an interactive picker: code-node -i walks the folder in the terminal - #37
Merged
Merged
Conversation
code-node -i opens a full-screen picker drawn with rich: arrow keys through the folders, type to search every file by path, then pick the function to start from. Files with an entry point have a star, and a wide terminal previews a file's functions or a function's code. Tab switches to the entry points found. Wherever the command asked which entry point (the numbered list), it now opens the same picker, and with no entry point found in a terminal it lets you pick a file. --list, --plugins, errors, the summary and --serve's lines are drawn with rich, now a dependency. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
code-node -iopens a full-screen picker in the terminal, drawn with rich, for choosing where to start:ordhanfindsorders/handler.pyFiles and folders holding an entry point have a ★. At 110+ columns a panel beside the list shows a file's functions or a function's code.
Also changed
input()list), it opens the same picker. With no entry point found in a terminal, it opens the file browser instead of failing. Without a terminal it still takes the first one;-iwithout a terminal exits 2.--list,--plugins, errors, the summary and--serve's lines are printed with rich.--mermaidstays plain text.rich>=13.7is now a package dependency.Files
src/code_node/browse.py: the picker (_Picker,browse)src/code_node/terminal.py: the rich consoles andkeys()(termios, or msvcrt on Windows)cli.py,serve.pywired to them; CHANGELOG, README,docs/usage.md, CLAUDE.md updatedTesting
make checkpasses (lint, tests, docs build, package)🤖 Generated with Claude Code