bashsupport-pro icon indicating copy to clipboard operation
bashsupport-pro copied to clipboard

When prompted in path completion, use not only the current directory, but also the project root

Open BorzdeG opened this issue 4 years ago • 2 comments

When you enter a path, auto-completion only considers the directory where the script is located. I would like to be able to get hints about the root of the project.

BorzdeG avatar Dec 31 '21 16:12 BorzdeG

Thanks for reporting! The parent directory of the script is currently a best guess, because the correct directory is runtime information. cd could change it anytime and it's not possible to handle this in static analysis.

I assume that showing paths from both root directory and parent directory is confusing, because at least one set will be invalid. Would you prefer to configure this per-file or per-project?

jansorg avatar Jan 04 '22 15:01 jansorg

I would prefer this at the project level, but be able to toggle for a specific script. How does Database for SQL syntax do it in sql files

image

in sql editor: image

BorzdeG avatar Jan 04 '22 18:01 BorzdeG