Up Next:
* Implement tab completion
-* Change status to current dir in pty mode.
* synchronize title with status contents.
-* Implement server daemon for tracking open files
* B2+B1 click executes command with selection as argument
-* right click to fetch file or line
* Run commands in the background and don't block the main thread.
* update man pages with new functionality
+* tfetch variable expansion needs to be reworked
+* rename tide to twin and tctl to tide
* moving from tags to the gutter does not transfer focus to edit region
* implement transaction control in buf.c
*(status++) = (SearchDir < 0 ? '<' : '>');
*(status++) = (buf->modified ? '*' : ' ');
*(status++) = ' ';
- char* path = (buf->path ? buf->path : "*scratch*");
size_t remlen = sizeof(status_bytes) - strlen(status_bytes) - 1;
- strncat(status, path, remlen);
+ if (pty_active()) {
+ char* path = getcurrdir();
+ strncat(status, path, remlen);
+ free(path);
+ } else {
+ char* path = (buf->path ? buf->path : "*scratch*");
+ strncat(status, path, remlen);
+ }
win_settext(STATUS, status_bytes);
win_view(STATUS)->selection = (Sel){0,0,0};
}