fix: prefer CTRL+D for cancel job (#1286)

This commit is contained in:
Andreas Weber 2023-12-08 20:05:09 +01:00
parent a6bc84364e
commit 72988958ee
3 changed files with 4 additions and 4 deletions

View File

@ -109,7 +109,7 @@ func NewCmdView(f *cmdutils.Factory) *cobra.Command {
'Enter' to toggle a job's logs or trace or display a child pipeline (trigger jobs are marked with a »).
'Esc' or 'q' to close logs,trace or go back to the parent pipeline.
'Ctrl+R', 'Ctrl+P' to run/retry/play a job -- Use Tab / Arrow keys to navigate modal and Enter to confirm.
'Ctrl+C' to cancel job -- (Quits CI/CD view if selected job isn't running or pending).
'Ctrl+D' to cancel job -- (Quits CI/CD view if selected job isn't running or pending).
'Ctrl+Q' to Quit CI/CD View.
'Ctrl+Space' suspend application and view logs (similar to glab pipeline ci trace)
Supports vi style bindings and arrow keys for navigating jobs and logs.
@ -264,7 +264,7 @@ func inputCapture(
case tcell.KeyCtrlQ:
app.Stop()
return nil
case tcell.KeyCtrlC:
case tcell.KeyCtrlD:
if curJob.Kind == Job && (curJob.Status == "pending" || curJob.Status == "running") {
modalVisible = true
modal := tview.NewModal().

View File

@ -22,7 +22,7 @@ Use arrow keys to navigate jobs and logs.
'Enter' to toggle a job's logs or trace or display a child pipeline (trigger jobs are marked with a »).
'Esc' or 'q' to close logs,trace or go back to the parent pipeline.
'Ctrl+R', 'Ctrl+P' to run/retry/play a job -- Use Tab / Arrow keys to navigate modal and Enter to confirm.
'Ctrl+C' to cancel job -- (Quits CI/CD view if selected job isn't running or pending).
'Ctrl+D' to cancel job -- (Quits CI/CD view if selected job isn't running or pending).
'Ctrl+Q' to Quit CI/CD View.
'Ctrl+Space' suspend application and view logs (similar to glab pipeline ci trace)
Supports vi style bindings and arrow keys for navigating jobs and logs.

View File

@ -22,7 +22,7 @@ Use arrow keys to navigate jobs and logs.
'Enter' to toggle a job's logs or trace or display a child pipeline (trigger jobs are marked with a »).
'Esc' or 'q' to close logs,trace or go back to the parent pipeline.
'Ctrl+R', 'Ctrl+P' to run/retry/play a job -- Use Tab / Arrow keys to navigate modal and Enter to confirm.
'Ctrl+C' to cancel job -- (Quits CI/CD view if selected job isn't running or pending).
'Ctrl+D' to cancel job -- (Quits CI/CD view if selected job isn't running or pending).
'Ctrl+Q' to Quit CI/CD View.
'Ctrl+Space' suspend application and view logs (similar to glab pipeline ci trace)
Supports vi style bindings and arrow keys for navigating jobs and logs.