Geany can follow the path of the current document in the terminal, see "Preferences->Terminal->Follow path of the current file". I think it should address your issue.
Geany can follow the path of the current document in the terminal, see "Preferences- >Terminal- >Follow path of the current file". I think it should address your issue.