summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-04-03 01:16:23 -0400
committerGitHub <noreply@github.com>2020-04-03 01:16:23 -0400
commit620d614f1274429ca8e579bd2b9f9e8090f720d9 (patch)
treee172f4f72afb46e7a78d81d4b355ec1a1bd47e56
parent4b756e9fe9c251833ff2d33cd9d3a49f98da3a2b (diff)
parent14c58507c02e4e4d04ece9d42be52372e8df8e22 (diff)
(docs): Updates docs and removes a debug
-rw-r--r--README.md67
-rw-r--r--src/main.rs2
2 files changed, 23 insertions, 46 deletions
diff --git a/README.md b/README.md
index faa44ee5..e6b8cb78 100644
--- a/README.md
+++ b/README.md
@@ -14,54 +14,31 @@ This documentation is relevant to version 0.3.0. Please refer to [release branch
## Table of Contents
- [Installation](#installation)
-
- [Manual](#manual)
-
- [Cargo](#cargo)
-
- [AUR](#aur)
-
- [Debian (and Debian-based)](#debian)
-
- [Homebrew](#homebrew)
-
- [Scoop](#scoop)
-
- [Chocolatey](#chocolatey)
-
- [Usage](#usage)
-
- [Flags](#flags)
-
- [Options](#options)
-
- [Keybindings](#keybindings)
-
- [General](#general)
- [CPU bindings](#cpu-bindings)
- [Process bindings](#process-bindings)
- [Process search bindings](#process-search-bindings)
-
- [Features](#features)
-
- [Process filtering](#process-filtering)
-
- [Zoom](#zoom)
-
- [Maximizing](#maximizing)
-
- [Config files](#config-files)
-
- [Config flags](#config-flags)
-
- [Theming](#theming)
-
- [Layout](#layout)
-
- [Compatibility](#compatibility)
-
-- [Contributors](#contributors)
-
+- [Contribution](#contribution)
- [Thanks](#thanks)
## Installation
@@ -70,7 +47,7 @@ Note that binaries are built on the stable version of Rust, and I mainly test an
### Manual
-Clone from this repo or from [Releases](https://github.com/ClementTsang/bottom/releases), and build with `cargo build --release`.
+Clone from this repo or from [Releases](https://github.com/ClementTsang/bottom/releases), and build with `cargo build --release`. You may also want to strip the binary after.
### Cargo
@@ -157,23 +134,23 @@ Run using `btm`.
#### General
-| | |
-| -------------------------------------------------- | ------------------------------------------------------------------------------------------- |
-| `q`, `Ctrl-c` | Quit bottom |
-| `Esc` | Close dialog windows, search, widgets, or exit maximized mode |
-| `Ctrl-r` | Reset display and any collected data |
-| `f` | Freeze/unfreeze updating with new data |
-| `Ctrl`-arrow key<br>`Shift`-arrow key<br>`H/J/K/L` | Move to a different widget (on macOS some keybindings may conflict) |
-| `Up`,`k` | Scroll up in tables |
-| `Down`, `j` | Scroll down in tables |
-| `?` | Open help menu |
-| `gg`, `Home` | Jump to the first entry of a table |
-| `Shift-g`, `End` | Jump to the last entry of a table |
-| `Enter` | Maximize widget |
-| `+` | Zoom in on a chart |
-| `-` | Zoom out on a chart |
-| `=` | Reset zoom |
-| Mouse scroll | Table: Scrolls through the list Chart: Zooms in or out by scrolling up or down respectively |
+| | |
+| -------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
+| `q`, `Ctrl-c` | Quit bottom |
+| `Esc` | Close dialog windows, search, widgets, or exit maximized mode |
+| `Ctrl-r` | Reset display and any collected data |
+| `f` | Freeze/unfreeze updating with new data |
+| `Ctrl`-arrow key<br>`Shift`-arrow key<br>`H/J/K/L` | Move to a different widget (on macOS some keybindings may conflict) |
+| `Up`,`k` | Scroll up in tables |
+| `Down`, `j` | Scroll down in tables |
+| `?` | Open help menu |
+| `gg`, `Home` | Jump to the first entry of a table |
+| `Shift-g`, `End` | Jump to the last entry of a table |
+| `Enter` | Maximize widget |
+| `+` | Zoom in on a chart |
+| `-` | Zoom out on a chart |
+| `=` | Reset zoom |
+| Mouse scroll | Table: Scrolls through the list<br>Chart: Zooms in or out by scrolling up or down respectively |
#### CPU bindings
@@ -183,7 +160,7 @@ Run using `btm`.
| `Space` | Toggle enabled/disabled cores |
| `Esc` | Exit filtering mode |
-#### Processes bindings
+#### Process bindings
| | |
| ------------- | ---------------------------------------------------------- |
@@ -382,13 +359,15 @@ and get the following CPU donut:
### Compatibility
+The current compatibility of widgets with operating systems from personal testing:
+
| OS | CPU | Memory | Disks | Temperature | Processes/Search | Networks |
| ------- | --- | ------ | ----- | ----------- | ---------------- | -------- |
| Linux | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Windows | ✓ | ✓ | ✓ | ✗ | ✓ | ✓ |
| macOS | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
-## Contributors
+## Contribution
Contribution is always welcome - just submit a PR! Note that I currently develop and test on stable Rust.
diff --git a/src/main.rs b/src/main.rs
index 95e3d380..5ffe5c86 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -361,8 +361,6 @@ fn create_config(flag_config_location: Option<&str>) -> error::Result<Config> {
OsString::new()
};
- debug!("Config path: {:?}", config_path);
-
let path = std::path::Path::new(&config_path);
if let Ok(config_string) = fs::read_to_string(path) {