Feature request for product/service
Cursor IDE
Describe the request
I’d like to be able to copy-paste a one-liner that opens a certain file at a certain symbol. Currently, the editor seems really close to supporting it and I suspect a fix is simple. See details below.
What works
- When I manually type
path/to/file.py@Symbolin the file search (cmd+P), it works (it suggests opening that file at that symbol).
What doesn’t work
When I copy-paste it at once, it doesn’t work (“No matching results”).
Workaround: When I copy-paste path/to/file.py @Symbol (not the space before the @) and then manually remove the space, it works.
Hypothesis
This probably has to do with how the path is parsed. When typing the full input is parsed eagerly and a path is detected. When pasting at once, the path isn’t detected when evaluating the full input. Instead, we could fix it by detecting the @ sign and splitting the string (I assume this is also done for : when doing path/to/file.py:line_number?)