Cmd-click should pass the line number at the end of a filepath to an invoked custom app
Discord username (optional)
No response
Describe the solution you'd like?
Following up on https://github.com/warpdotdev/Warp/issues/177 , it would be so much nicer if Cmd-click would pass the line number appended to a filepath, e.g., the `16` in `./spec/services/user_registration_service_spec.rb:16`, on to the app being invoked. To retain sanity, this feature should be an option that is gated by whether the preference to invoke a custom app upon Cmd-click has been enabled, and it should allow specifying how to invoke the app including the line number value (in the case of JetBrains IDE's, no special handling is required, but e.g., for vim, the line number must directly follow the app name with a + sign preceding it).
Is your feature request related to a problem? Please describe.
I'm frustrated when I Cmd-click but then have to flip back to Warp to see what line number I need to manually navigate to in the file that was just opened.
Additional context
No response
How important is this feature to you?
4
Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087
No response
Definitely agree. I ran into this behaviour within half an hour of using Warp for the first time, and thought it had to be a bug - given a compiler error in the Warp window, I would click on a clear reference to a filename and line number, which Warp had underlined as a single link, but then the file would open in BBEdit at some random position where the file had last been open, not at the line where the syntax error had actually occurred. It does seem a shame to completely recognise the line number and then throw it away.
Being able to click on the source of error messages would for me be the single best feature in Warp, I think, just because of the amount of development stuff I do with various compilers in a terminal window rather than a Xcode or VS.
Thanks for this feature request! Please +1 this request as it helps us gauge interest. We will post any updates here.
I've just switched to Warp, and also assumed this must be a bug? File path links from PHPUnit are picked up but the line number seemingly isn't passed to PhpStorm.
The file opens in PhpStorm, but it doesn't jump to the line in the way it does when using Cmd+Shift+O in PhpStorm with a /path/to.file:num input.
Any plans for this one? It affects other IntelliJ products as well, not just PhpStorm.
Hi folks, this only appears to be an issue with JetBrains IDE's at this time. I'll notify the team and see if we can get this on the roadmap.
FYI, I submitted a feature enhancement years ago to Jetbrains' command-line IDE launcher script to accept the line number at the end of the filename like this, and it was incorporated into their product (at least for RubyMine; I don't use the other languages' IDE's). Maybe that would be helpful in implementing your solution (e.g., call the launcher script -- I realize that's probably pretty different from how Warp acts by default when launching the associated app).
It's not specific to JetBrains, whatever they are! I would like this to work with BBEdit, for example.
@ganelson It's something specific with BBEdit that we're tracking here. https://github.com/warpdotdev/Warp/issues/3759