summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-02-19 00:16:40 -0500
committerClementTsang <cjhtsang@uwaterloo.ca>2020-02-19 00:16:40 -0500
commit8cf5b42f2978d3bac81a04b4be12b4457b97a25b (patch)
tree9e1c938d642c7e3daa0ee7a01db21b93c7077d7c
parentc6cefc25611f50d20d926e4809eaef76b14c7206 (diff)
Update cargo.toml, some todos
-rw-r--r--Cargo.toml6
-rw-r--r--src/app.rs2
-rw-r--r--src/canvas/drawing_utils.rs1
3 files changed, 6 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 0e5a6956..86b83fe6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,10 +4,10 @@ version = "0.2.0"
authors = ["Clement Tsang <cjhtsang@uwaterloo.ca>"]
edition = "2018"
repository = "https://github.com/ClementTsang/bottom"
-keywords = ["cli", "monitoring-tool", "top", "bottom", "graphical"]
+keywords = ["linux", "macos", "windows", "cli", "monitoring-tool", "top", "bottom", "graphical"]
license = "MIT"
-categories = ["command-line-utilities"]
-description = "A graphical top clone, written in Rust. Inspired by both gtop and gotop."
+categories = ["command-line-utilities", "visualization"]
+description = "A graphical top clone, written in Rust. Inspired by both gtop and gotop. Supports Linux, macOS, and Windows."
readme = "README.md"
[[bin]]
diff --git a/src/app.rs b/src/app.rs
index c2bf78af..06212c71 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -539,6 +539,8 @@ impl App {
}
} else if !self.is_in_dialog() {
// Pop-out mode. We ignore if in process search.
+
+ // TODO: [FIX] This is a temporary workaround for scroll not being proper with expanded (and resizing overall).
match self.current_widget_selected {
WidgetPosition::Process => {
self.app_scroll_positions
diff --git a/src/canvas/drawing_utils.rs b/src/canvas/drawing_utils.rs
index b12a40da..5629eb93 100644
--- a/src/canvas/drawing_utils.rs
+++ b/src/canvas/drawing_utils.rs
@@ -74,6 +74,7 @@ pub fn get_start_position(
num_rows: u64, scroll_direction: &app::ScrollDirection, scroll_position_bar: &mut u64,
currently_selected_position: u64,
) -> u64 {
+ // TODO: [FIX] Scroll does NOT work with expanded (and resizing overall).
// if currently_selected_position >= *scroll_position_bar
// && num_rows > (currently_selected_position - *scroll_position_bar + num_rows)
// {