diff options
Diffstat (limited to 'ui/tcell/window.go')
-rw-r--r-- | ui/tcell/window.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/tcell/window.go b/ui/tcell/window.go index b3774d2..d278082 100644 --- a/ui/tcell/window.go +++ b/ui/tcell/window.go @@ -2,6 +2,7 @@ package uitcell import ( "fmt" + "strings" "github.com/gdamore/tcell" "github.com/prodhe/poe/editor" @@ -41,8 +42,8 @@ func NewWindow(id int64) *Window { }, } - fmt.Fprintf(win.tagline, "%s Del ", - win.Name(), + fmt.Fprintf(win.tagline, "%s ", + win.TagName(), ) return win @@ -88,6 +89,10 @@ func (win *Window) Name() string { return win.body.text.Name() } +func (win *Window) TagName() string { + return strings.TrimPrefix(win.body.text.Name(), ed.WorkDir()) +} + func (win *Window) Dir() string { d := win.body.text.WorkDir() if d == "." { |