@ 261102.1

261102.1 · 99bfd5aa0f66133d7dcfbf18f8044eb765f04649

Add change-info-command and transform variants

- change-info-command, transform-info-command, bg-transform-info-command
- change-info-command disallowed from remote --listen like change-preview

Close #4951

reading declarations

Changes to src/terminal.go. All files

src/terminal.go

@@ -589,6 +589,7 @@ const ( 	actChangeFooter 	actChangeHeaderLabel 	actChangeFooterLabel+	actChangeInfoCommand 	actChangeInputLabel 	actChangeListLabel 	actChangeMulti@@ -676,6 +677,7 @@ const ( 	actTransformFooter 	actTransformHeaderLabel 	actTransformFooterLabel+	actTransformInfoCommand 	actTransformInputLabel 	actTransformListLabel 	actTransformNth@@ -696,6 +698,7 @@ const ( 	actBgTransformFooter 	actBgTransformHeaderLabel 	actBgTransformFooterLabel+	actBgTransformInfoCommand 	actBgTransformInputLabel 	actBgTransformListLabel 	actBgTransformNth@@ -764,6 +767,7 @@ func processExecution(action actionType) bool { 		actTransformFooter, 		actTransformHeaderLabel, 		actTransformFooterLabel,+		actTransformInfoCommand, 		actTransformInputLabel, 		actTransformListLabel, 		actTransformNth,@@ -781,6 +785,7 @@ func processExecution(action actionType) bool { 		actBgTransformFooter, 		actBgTransformHeaderLabel, 		actBgTransformFooterLabel,+		actBgTransformInfoCommand, 		actBgTransformInputLabel, 		actBgTransformListLabel, 		actBgTransformNth,@@ -792,6 +797,7 @@ func processExecution(action actionType) bool { 		actBgTransformSearch, 		actPreview, 		actChangePreview,+		actChangeInfoCommand, 		actRefreshPreview, 		actExecute, 		actExecuteSilent,@@ -7447,6 +7453,13 @@ func (t *Terminal) Loop() error { 					t.footerLabel, t.footerLabelLen = t.ansiLabelPrinter(label, &tui.ColFooterLabel, false) 					req(reqRedrawFooterLabel) 				})+			case actChangeInfoCommand, actTransformInfoCommand, actBgTransformInfoCommand:+				capture(true, func(command string) {+					if t.infoCommand != command {+						t.infoCommand = command+						req(reqInfo)+					}+				}) 			case actChangeInputLabel, actTransformInputLabel, actBgTransformInputLabel: 				capture(true, func(label string) { 					t.inputLabelOpts.label = label