Closed aolo2 closed 2 years ago
As it stands right now, the Files pane starts in the home directory every time.
This seems wrong? According to this code, https://github.com/nakst/gf/blob/master/windows.cpp#L2215, it should start in the working directory where gf2
is launched.
Regardless, I am happy to add buttons to the file window to navigate to a) the current working directory and b) the folder containing the currently loaded file.
Ah, you are right. The thing is: I launch gf2
via a .desktop file, so the workdir is always the same.
Added in a2ff166.
As it stands right now, the
Files
pane starts in the home directory every time. However, what I mostly use it for is for navigating to the debugee source file to place a breakpoint. So what I have to do is go all the way from the home folder to the project source folder.Would be nice to either:
Files
pane already in the compilation root folder"go to main.c"
button in theFiles
pane or something like thatI'm not sure if gdb itself exposes any of this information, but dwarf sure does! (it's in
DW_TAG_compile_unit
->DW_AT_comp_dir
).