| 42 | } |
| 43 | |
| 44 | func (self *FileCommands) GetEditAtLineCmdStr(filename string, lineNumber int) (string, bool) { |
| 45 | template, suspend := config.GetEditAtLineTemplate(self.os.Platform.Shell, &self.UserConfig().OS, self.guessDefaultEditor) |
| 46 | |
| 47 | templateValues := map[string]string{ |
| 48 | "filename": self.cmd.Quote(filename), |
| 49 | "line": strconv.Itoa(lineNumber), |
| 50 | } |
| 51 | |
| 52 | cmdStr := utils.ResolvePlaceholderString(template, templateValues) |
| 53 | return cmdStr, suspend |
| 54 | } |
| 55 | |
| 56 | func (self *FileCommands) GetEditAtLineAndWaitCmdStr(filename string, lineNumber int) string { |
| 57 | template := config.GetEditAtLineAndWaitTemplate(self.os.Platform.Shell, &self.UserConfig().OS, self.guessDefaultEditor) |