Add reload-sync action

Close #2816
This commit is contained in:
Junegunn Choi committed 2022-12-29 20:04:33 +09:00
1 parent 14775aa975
commit 6c37177cf5
6 files changed
+124 -66

No files matched your search

+3 -1
View File
@@ -892,7 +892,7 @@ const (
func init() {
executeRegexp = regexp.MustCompile(
`(?si)[:+](execute(?:-multi|-silent)?|reload|preview|change-query|change-prompt|change-preview-window|change-preview|(?:re|un)bind|pos|put|transform-query)`)
`(?si)[:+](execute(?:-multi|-silent)?|reload(?:-sync)?|preview|change-query|change-prompt|change-preview-window|change-preview|(?:re|un)bind|pos|put|transform-query)`)
splitRegexp = regexp.MustCompile("[,:]+")
actionNameRegexp = regexp.MustCompile("(?i)^[a-z-]+")
}
@@ -1185,6 +1185,8 @@ func isExecuteAction(str string) actionType {
switch prefix {
case "reload":
return actReload
case "reload-sync":
return actReloadSync
case "unbind":
return actUnbind
case "rebind":