Skip to content

feat(shell): add command not found suggestions#4014

Open
Zeglius wants to merge 2 commits intoublue-os:testingfrom
Zeglius:command_not_found_handler
Open

feat(shell): add command not found suggestions#4014
Zeglius wants to merge 2 commits intoublue-os:testingfrom
Zeglius:command_not_found_handler

Conversation

@Zeglius
Copy link
Copy Markdown
Collaborator

@Zeglius Zeglius commented Jan 26, 2026

Introduce a command_not_found_handle function to provide users with command suggestions when a command is not found.

This feature enhances the shell experience by using fzf to perform a fuzzy search on the mistyped command against a list of available ujust recipes and system commands, suggesting possible alternatives.

Introduce a command_not_found_handle function to provide users
with command suggestions when a command is not found.

This feature enhances the shell experience by using fzf to perform
a fuzzy search on the mistyped command against a list of available
ujust recipes and system commands, suggesting possible alternatives.

Signed-off-by: Zeglius <[email protected]>
@renner0e
Copy link
Copy Markdown
Member

just want to point out that KDE Linux has something similar to this and it might be worth looking into

https://invent.kde.org/kde-linux/kde-linux/-/blob/dbdbb552e94e7d8766d89e1a77e60447d4b5eaaf/mkosi.extra/usr/lib/command-not-found-handler.py

@Zeglius
Copy link
Copy Markdown
Collaborator Author

Zeglius commented Jan 27, 2026

just want to point out that KDE Linux has something similar to this and it might be worth looking into

https://invent.kde.org/kde-linux/kde-linux/-/blob/dbdbb552e94e7d8766d89e1a77e60447d4b5eaaf/mkosi.extra/usr/lib/command-not-found-handler.py

Interesting. Some sort of handle for alternatives would be nice for dnf/apt/pacman.

Will try to add that.

@KyleGospo KyleGospo force-pushed the testing branch 5 times, most recently from 67fecf0 to 78a8e64 Compare January 29, 2026 18:01
Also add custom suggestions array.

Signed-off-by: Zeglius <[email protected]>
@KyleGospo KyleGospo force-pushed the testing branch 3 times, most recently from 89ff439 to 7d3c7b0 Compare February 17, 2026 08:33
@KyleGospo KyleGospo force-pushed the testing branch 5 times, most recently from cf51257 to be6315c Compare March 13, 2026 05:52
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