summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--docs/content/usage/widgets/process.md2
-rw-r--r--src/app.rs6
-rw-r--r--src/constants.rs2
-rw-r--r--src/lib.rs1
5 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 637eeff7..23bb31ad 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,12 +12,14 @@ on:
paths-ignore:
- 'README.md'
- 'docs/**'
+ - '.github/ISSUE_TEMPLATE/**'
push:
branches:
- master
paths-ignore:
- 'README.md'
- 'docs/**'
+ - '.github/ISSUE_TEMPLATE/**'
jobs:
# Check rustfmt
diff --git a/docs/content/usage/widgets/process.md b/docs/content/usage/widgets/process.md
index 43302ee0..c5f9c89b 100644
--- a/docs/content/usage/widgets/process.md
+++ b/docs/content/usage/widgets/process.md
@@ -168,7 +168,7 @@ Note that key bindings are generally case-sensitive.
| ++down++ , ++j++ | Move down within a widget |
| ++g+g++ , ++home++ | Jump to the first entry in the table |
| ++G++ , ++end++ | Jump to the last entry in the table |
-| ++d+d++ | Send a kill signal to the selected process |
+| ++d+d++ , ++f9++ | Send a kill signal to the selected process |
| ++c++ | Sort by CPU usage, press again to reverse sorting order |
| ++m++ | Sort by memory usage, press again to reverse sorting order |
| ++p++ | Sort by PID name, press again to reverse sorting order |
diff --git a/src/app.rs b/src/app.rs
index 3de4939b..822d4a1d 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -805,7 +805,7 @@ impl App {
self.proc_state.force_update = Some(self.current_widget.widget_id - 1);
}
} else {
- self.start_dd()
+ self.start_killing_process()
}
}
}
@@ -1303,7 +1303,7 @@ impl App {
}
}
- pub fn start_dd(&mut self) {
+ pub fn start_killing_process(&mut self) {
self.reset_multi_tap_keys();
if let Some(proc_widget_state) = self
@@ -1482,7 +1482,7 @@ impl App {
self.awaiting_second_char = false;
self.second_char = None;
- self.start_dd();
+ self.start_killing_process();
}
}
diff --git a/src/constants.rs b/src/constants.rs
index f85904bb..c810ccb9 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -271,7 +271,7 @@ pub const CPU_HELP_TEXT: [&str; 2] = [
pub const PROCESS_HELP_TEXT: [&str; 15] = [
"3 - Process widget",
- "dd Kill the selected process",
+ "dd, F9 Kill the selected process",
"c Sort by CPU usage, press again to reverse sorting order",
"m Sort by memory usage, press again to reverse sorting order",
"p Sort by PID name, press again to reverse sorting order",
diff --git a/src/lib.rs b/src/lib.rs
index eda55bb6..835af242 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -124,6 +124,7 @@ pub fn handle_key_event_or_break(
KeyCode::F(3) => app.toggle_search_regex(),
KeyCode::F(5) => app.toggle_tree_mode(),
KeyCode::F(6) => app.toggle_sort(),
+ KeyCode::F(9) => app.start_killing_process(),
_ => {}
}
} else {