mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
add tap function
This commit is contained in:
@ -194,3 +194,11 @@ func (self *View) NavigateToListItem(matcher *matcher) *View {
|
||||
|
||||
return self
|
||||
}
|
||||
|
||||
// for when you want to make some assertion unrelated to the current view
|
||||
// without breaking the method chain
|
||||
func (self *View) Tap(f func()) *View {
|
||||
f()
|
||||
|
||||
return self
|
||||
}
|
||||
|
Reference in New Issue
Block a user