nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1c2cb7fd316b48985c8bc5edbb5644b2d0cc3f4e
parent f90e567a17cfdf5109a3a97eb60be6608a690921
Author: lvgx <l@vgx.fr>
Date:   Wed, 24 Mar 2021 02:20:51 +0100

Show path in terminal title (#912)

* Show path in terminal title

* Better terminal window title format

Title is now "basename (full/path)"
Diffstat:
Msrc/nnn.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -5993,6 +5993,10 @@ begin: setdirwatch(); } + /* Set terminal window title */ + printf("\033]2;%s (%s)\007", xbasename(path), path); + fflush(stdout); + if (g_state.selmode && lastdir[0]) lastappendpos = selbufpos;