diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-15 23:00:20 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-03-30 21:57:00 +1100 |
commit | c9de6c003bf28c7f5fdb5ed7aaf70793836b324d (patch) | |
tree | 5fc7aecda7ff31f69dc4bfd5464bd4a4f0420067 /pkg/gui/custom_commands.go | |
parent | 418621a9ff41f1282e471ce2250f62c9e1d2bdbf (diff) |
support some more things
Diffstat (limited to 'pkg/gui/custom_commands.go')
-rw-r--r-- | pkg/gui/custom_commands.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/custom_commands.go b/pkg/gui/custom_commands.go index 6b86b07fd..f1fadeb5f 100644 --- a/pkg/gui/custom_commands.go +++ b/pkg/gui/custom_commands.go @@ -16,6 +16,7 @@ type CustomCommandObjects struct { SelectedReflogCommit *models.Commit SelectedSubCommit *models.Commit SelectedFile *models.File + SelectedPath string SelectedLocalBranch *models.Branch SelectedRemoteBranch *models.RemoteBranch SelectedRemote *models.Remote @@ -29,6 +30,7 @@ type CustomCommandObjects struct { func (gui *Gui) resolveTemplate(templateStr string, promptResponses []string) (string, error) { objects := CustomCommandObjects{ SelectedFile: gui.getSelectedFile(), + SelectedPath: gui.getSelectedPath(), SelectedLocalCommit: gui.getSelectedLocalCommit(), SelectedReflogCommit: gui.getSelectedReflogCommit(), SelectedLocalBranch: gui.getSelectedBranch(), |