Noam-Dori / ros-integrate

Extends IntelliJ-Based IDEs with ROS specific development tools
Apache License 2.0
22 stars 3 forks source link

Navigation to linked files in Xacro & Launch files #72

Open Doomerdinger opened 2 years ago

Doomerdinger commented 2 years ago

Feature: Navigation to linked files in Xacro & Launch files

Background I realize "launch file support" is on the roadmap, this is simply a suggestion for part of that potential support.

When working in launch/xacro files, other files of those types (and sometimes some others, like yaml files) are frequently included, relative to other packages (or the current directory). It can be a huge pain to try and jump around through the different levels of files while trying to track something down.

Examples in xacro: image image

Example in launch: image

Details Whenever a relative path was found in one of those file types ($(dirname), some $(find X) call, etc) that whole path would become a clickable link (ctrl+click) which would navigate you to the specified file. Alternatively, some button off on the sidebar could be made available to click on to navigate to the file - I believe hatchery employs the latter technique.

It would be super great if after typing $(find a list of packages could be autocompleted from. Even more above and beyond, it would be excellent if after completing the whole $(find package) call, that path could be resolved so further specifics of the filepath could be suggested (so if a subbolder bar in package foo existed, after typing $(find foo)/ you could get the suggestion bar).