Skip to content

Commit

Permalink
add window title and start cursor at end of string
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Sep 7, 2024
1 parent 03c8e9a commit 64af1a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ function NoteManager:init()
widgets.Window{
frame={w=35,h=20},
frame_inset={t=1},
frame_title='Notes',
resizable=true,
subviews={
widgets.HotkeyLabel {
Expand All @@ -176,7 +177,7 @@ function NoteManager:init()
frame={t=1,h=3},
frame_style=gui.FRAME_INTERIOR,
init_text=self.note and self.note.point.name or '',
init_cursor=1,
init_cursor=self.note and #self.note.point.name+1 or 1,
one_line_mode=true
},
widgets.HotkeyLabel {
Expand Down

0 comments on commit 64af1a4

Please sign in to comment.