Feature request for product/service
Cursor IDE
Describe the request
$TERM_INFO should be set to something like “cursor” instead of “vscode” to differentiate the two.
In my .zshrc I have a configuration to make ripgrep hyperlinks open properly in VSCode.
# Alias rg to be clickable in VS Code's terminal, only if in VS Code
if [[ "$TERM_PROGRAM" == 'vscode' ]]; then
alias rg='rg --hyperlink-format=vscode'
fi
But it also triggers the hyperlinking in Cursor which is incorrect behavior as it then tries to open the file in VSCode instead of Cursor (see screen shot).
So I added this to my .zshrc instead of to fix it.
if [[ "$TERM_PROGRAM" == 'vscode' ]]; then
alias rg='rg --hyperlink-format="cursor://file{path}:{line}:{column}"'
fi
Ideally, there is some way to differentiate between Cursor and VSCode terminals to configure command line tools correctly if both Cursor and VSCode are installed on the computer.
Screenshot / Screen Recording
Operating System (if it applies)
MacOS
