mirror of
https://github.com/shokinn/hosts-go.git
synced 2025-08-23 16:43:02 +00:00
Add edit mode toggle and entry activation
This commit is contained in:
parent
0c60248d75
commit
51966f766c
6 changed files with 69 additions and 17 deletions
|
@ -111,3 +111,8 @@ func (m Model) SelectedEntry() *core.HostEntry {
|
|||
}
|
||||
return m.hosts.Entries[idx]
|
||||
}
|
||||
|
||||
// Mode returns the current operating mode of the TUI.
|
||||
func (m Model) Mode() Mode {
|
||||
return m.mode
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue