summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/file.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-08-09 21:34:51 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-08-09 22:03:58 +1000
commit9c5eedf748aaf26ed2042aa20babc42fa13eca41 (patch)
treeb7c518716fd1c906f72ccddd0295861d08d51eb8 /pkg/commands/git_commands/file.go
parentca08956f776f34a9324c51add98398e19806d009 (diff)
use 'suspend' instead of 'editInTerminal' internally
'suspend' is a more appropriate name, especially now that you can choose not to suspend despite still being in a terminal
Diffstat (limited to 'pkg/commands/git_commands/file.go')
-rw-r--r--pkg/commands/git_commands/file.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/commands/git_commands/file.go b/pkg/commands/git_commands/file.go
index 9fd5e8929..173e342f7 100644
--- a/pkg/commands/git_commands/file.go
+++ b/pkg/commands/git_commands/file.go
@@ -83,14 +83,14 @@ func (self *FileCommands) GetEditCmdStr(filename string) (string, bool) {
}
}
- template, editInTerminal := config.GetEditTemplate(&self.UserConfig.OS, self.guessDefaultEditor)
+ template, suspend := config.GetEditTemplate(&self.UserConfig.OS, self.guessDefaultEditor)
templateValues := map[string]string{
"filename": self.cmd.Quote(filename),
}
cmdStr := utils.ResolvePlaceholderString(template, templateValues)
- return cmdStr, editInTerminal
+ return cmdStr, suspend
}
func (self *FileCommands) GetEditAtLineCmdStr(filename string, lineNumber int) (string, bool) {
@@ -101,7 +101,7 @@ func (self *FileCommands) GetEditAtLineCmdStr(filename string, lineNumber int) (
}
}
- template, editInTerminal := config.GetEditAtLineTemplate(&self.UserConfig.OS, self.guessDefaultEditor)
+ template, suspend := config.GetEditAtLineTemplate(&self.UserConfig.OS, self.guessDefaultEditor)
templateValues := map[string]string{
"filename": self.cmd.Quote(filename),
@@ -109,7 +109,7 @@ func (self *FileCommands) GetEditAtLineCmdStr(filename string, lineNumber int) (
}
cmdStr := utils.ResolvePlaceholderString(template, templateValues)
- return cmdStr, editInTerminal
+ return cmdStr, suspend
}
func (self *FileCommands) GetEditAtLineAndWaitCmdStr(filename string, lineNumber int) string {
@@ -132,14 +132,14 @@ func (self *FileCommands) GetEditAtLineAndWaitCmdStr(filename string, lineNumber
}
func (self *FileCommands) GetOpenDirInEditorCmdStr(path string) (string, bool) {
- template, editInTerminal := config.GetOpenDirInEditorTemplate(&self.UserConfig.OS, self.guessDefaultEditor)
+ template, suspend := config.GetOpenDirInEditorTemplate(&self.UserConfig.OS, self.guessDefaultEditor)
templateValues := map[string]string{
"dir": self.cmd.Quote(path),
}
cmdStr := utils.ResolvePlaceholderString(template, templateValues)
- return cmdStr, editInTerminal
+ return cmdStr, suspend
}
func (self *FileCommands) guessDefaultEditor() string {