`j` is not highlighted as valid command
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Reproduce the issue in a zsh session on macOS using the alias from the report, and compare it with the behavior addressed by #3056. Trace the command-highlighting and alias-resolution entry points to identify why a single-character command is rejected; done means valid j aliases and autojump shortcuts are highlighted like other valid commands, with similar single-character cases covered.
Written by the indexing model from the issue text.
Description
Dupe Check
- I have searched Warp bugs and there are no duplicates
Describe the bug
Valid commands are highlighted (not underlined) in the command line.
However, the single character command j is not recognized as valid when it should be:
- When a program (e.g.,
autojump) sets upjas a command shortcut. - When
jis aliased to any command (e.g.,la).
This should have been resolved with #3056.
Note: While j is the only case I've encountered, similar issues might exist.
To reproduce
- Add an alias for
j:
echo "alias j='la'" >> ~/.zshrc
- Start new shell session.
- Type
jin your command line.
Expected behavior
When j is a valid command (either through autojump or as an alias), it should be correctly highlighted, not underlined.
Screenshots
https://github.com/user-attachments/assets/f1a2d674-3cc1-462d-8966-3d8acba1a606
Operating system
MacOS
Operating system and version
Sonoma 14.5
Shell Version
zsh 5.9
Current Warp version
v0.2024.07.23.08.02.stable_01
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
No response
Additional context
No response
Does this block you from using Warp daily?
No
Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)
Yes, this I confirmed this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
None
- Dominant language
- Rust
- Stars
- 65.1k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from warpdotdev/warp
-
area:agent area:window-tabs-panes enhancement needs-info os:mac repro:high triaged
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
warpdotdev/warp#15768 · 3 comments · 1 reaction ·
-
bug factory-auto-implement factory:revops-factory os:mac ready-to-implement repro:high triaged warp:auto-triage-review
Difficulty 1/5 Under an hour Newbie friendliness 90/100
warpdotdev/warp#15697 · 2 comments ·
-
area:editor-notebooks bug repro:high triaged warp:auto-triage-review warp:tracking
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
warpdotdev/warp#13949 · 3 comments ·
-
markdown_parser: unclosed `<u>` markers pair via the emphasis algorithm and delete surrounding text Openarea:editor-notebooks bug ready-to-implement repro:high triaged warp:auto-triage-review
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
warpdotdev/warp#12863 · 2 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
warpdotdev/warp#11969 · 2 comments ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100