diff options
-rw-r--r-- | TODO.md | 30 | ||||
-rw-r--r-- | src/tui/app.rs | 2 |
2 files changed, 18 insertions, 14 deletions
@@ -1,28 +1,32 @@ # TODO ### chores -2. Move to github actions ASAP, travis & appveyor are a PITA. See resources below. -4. Refactor layout handling (see TODO on `tui::views::LayoutView::relayout`) -5. Release on AUR & Homebrew +0. Use `include_str!` instead of hardcoding `colors.toml`. +1. Move to github actions ASAP, travis & appveyor are a PITA. See resources below. +2. Refactor layout handling (see TODO on `tui::views::LayoutView::relayout`) +3. Release on AUR & Homebrew +4. Either `include_str!` or avoid parsing key mappings text altogether ### bugs 1. Shift+TAB should move focus backwards -2. why does `so -e stackexchange -s stackoverflow how do i exit vim` result in +2. Why does `so -e stackexchange -s stackoverflow how do i exit vim` result in different results than `so -e stackexchange -s stackoverflow "how do i exit vim"`? +3. Make highlight take precedence over md styling in answer preview ### feature ideas - Add sort option, e.g. relevance|votes|date - Keep track of quota in a data file, inform user when getting close? -- Maybe allow slimmer builds without TUI that only offer --lucky. +- Maybe allow slimmer builds without TUI that only offer --lucky or a more + primitive prompt interface as implemented in `so-hs`. #### Endless improvements for the TUI 1. Init with smaller layout depending on initial screen size. 2. Maybe cli `--auto-resize` option that changes layouts at breakpoints. -5. Maybe **[ESC]** cycles layout in the opposite direction? And stops at +3. Maybe **[ESC]** cycles layout in the opposite direction? And stops at BothColumns? -6. Allow cycling through themes, either found in `~/.config/so/colors/*.toml` +4. Allow cycling through themes, either found in `~/.config/so/colors/*.toml` or just hardcoded ones. -7. Small tray at the bottom with "notifications", e.g. "GitHub Theme loaded!" +5. Small tray at the bottom with "notifications", e.g. "GitHub Theme loaded!" **Important note:** Tables are not currently allowed in stackexchange... so the benefit of incorporating termimad features into a cursive view will not be felt. @@ -35,9 +39,9 @@ But, this is changing [soon](https://meta.stackexchange.com/q/348746). - [logging example](https://deterministic.space/rust-cli-tips.html) - [PKGBUILD example](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=gitui) + openssl dep - More mock user agents - - Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0 - - Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100 101 Firefox/22.0 - - Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0 - - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5 - - Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5 + - `Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0` + - `Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100 101 Firefox/22.0` + - `Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0` + - `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5` + - `Mozilla/5.0 (Windows; Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5` diff --git a/src/tui/app.rs b/src/tui/app.rs index 5d2515a..c0e2328 100644 --- a/src/tui/app.rs +++ b/src/tui/app.rs @@ -140,7 +140,7 @@ fn pretty_score(score: i32) -> StyledString { } // This would be a good usecase for brining in termimad tables -// TODO dont parse this at runtime, just hardcode it +// TODO dont parse this at runtime, just hardcode it (or include_str) pub fn help() -> Dialog { let bindings = r###" ## Panes |