Commit graph

88 commits

Author SHA1 Message Date
Christian Rocha
2a688fc71e In a filter, deleting docs stashed in-session converts them to local ones 2020-12-24 10:29:22 -05:00
Christian Rocha
03db9a6869 Put filter results in a tab 2020-12-24 10:29:22 -05:00
Christian Rocha
28ccb85b2e Use ANSI-aware truncation 2020-12-24 10:29:22 -05:00
Christian Rocha
6946f7e581 Rename 'common' model and associated keys for sake of clarity 2020-12-24 10:29:22 -05:00
Christian Rocha
617f0980d8 Handle stash failures 2020-12-24 10:29:22 -05:00
Christian Rocha
03d93169f2 Also make news stashable from the pager 2020-12-24 10:29:22 -05:00
Christian Rocha
c235780eee Appease the linter 2020-12-24 10:29:22 -05:00
Christian Rocha
4c63c62bfa Replace bit-based document type implementation with a set-based one 2020-12-24 10:29:22 -05:00
Christian Rocha
40a02259fc Only show news in news section 2020-12-24 10:29:22 -05:00
Christian Rocha
2d10fb8749 Adjust news header syle 2020-12-24 10:29:22 -05:00
shaun mitchell
d98cda4b2b fixed showStatusMessage(string) to display passed parameter 2020-12-08 10:45:12 -05:00
Christian Rocha
4e6460682e Consolidate common model properties to reduce duplication 2020-11-18 12:33:39 -05:00
Christian Rocha
fb5a81f4d6 Upgrade to Bubble Tea v0.12.2 and Bubbles v0.7.5 2020-11-17 15:57:55 -05:00
Christian Rocha
8277cbb71f Remove some consts + check cell widths of prompts, not byte lengths
We're able to remove those consts by virtue of reflow's new-ish
ansi.PrintableRuneWidth.
2020-11-17 15:57:55 -05:00
Christian Rocha
4b121593d4 Mop up styling big time 2020-11-17 15:57:55 -05:00
Christian Rocha
7ea7cc59e3
Respect width flag/config setting in the TUI; closes #168 2020-10-23 23:38:28 -04:00
Christian Rocha
186d07da55 Don't show stash/memo info in pager help for news 2020-10-19 15:50:50 +00:00
Christian Rocha
3b06ccbc34 Fix bug where pager help isn't updated after an in-pager stash 2020-10-19 15:50:50 +00:00
Christian Rocha
5847578f42 Convert pager to bubbletea 0.12.0 format 2020-10-19 15:50:50 +00:00
Christian Rocha
477979bce9 Correct placement of stash hint in pager help 2020-10-19 02:53:55 +00:00
Christian Rocha
8b78086f56 Remove extra line at the bottom of pager help 2020-10-18 22:57:11 +00:00
Christian Rocha
d4adf0d856
Don't use emojis on Windows 2020-10-13 15:14:07 -04:00
Christian Rocha
11d585870c
Don't show add memo help in pager for local items 2020-10-09 14:27:19 -04:00
bubersson
66a8ac10bc Remove duplicate "down/j" from the "?" help 2020-10-09 13:50:37 +02:00
Christian Rocha
26b3292f57 Don't allow stashing until authed + introduce "offline mode" in UI 2020-10-05 13:54:24 +02:00
Christian Rocha
ee4ed1bad5 Keybindings for jumping to the top and the bottom of the pager 2020-10-05 13:54:01 +02:00
Christian Rocha
3588f45ee9 Cleanup status message vars 2020-10-05 13:54:01 +02:00
Christian Rocha
6aba7afb8b Remove some magic numbers to calm the linter down 2020-10-05 13:54:01 +02:00
Christian Rocha
88523ee94f Remove extraneous formatting call 2020-10-05 13:54:01 +02:00
Christian Rocha
b296cbb780 Remove newlines the linter is complaining about 2020-10-05 13:54:01 +02:00
Christian Rocha
06cbbd7b6b Use lock emoji for stashed item in pager 2020-10-05 13:54:01 +02:00
Christian Rocha
912c80651a Apply fine-grained spinner display rules to file listing view 2020-10-05 13:54:01 +02:00
Christian Rocha
cdc55a4b28 Always show spinner for a minimum amount of time when stashing 2020-10-05 13:53:49 +02:00
Christian Rocha
82acc62783 Move common commands to the main UI file 2020-10-05 13:53:26 +02:00
Christian Rocha
23817355c6 Remove unnecessary conversion 2020-10-05 13:53:26 +02:00
Christian Rocha
c0daa74358 Add periods to comments to make the linter happy 2020-10-05 13:53:26 +02:00
Christian Rocha
2e7b0ec60f Fix regression where items stashed in the pager were treated as local 2020-10-05 13:53:26 +02:00
Christian Rocha
d7974f035c When stashing, replace local file with stashed file in the file listing 2020-10-05 13:53:26 +02:00
Christian Rocha
575017eb12 More integrated-looking stash confirmation message in pager 2020-10-05 13:53:26 +02:00
Christian Rocha
7d67711cdf Show spinner while stashing in the pager 2020-10-05 13:53:26 +02:00
Christian Rocha
1d434d64ad Stashed items get a green indicator in the pager 2020-10-05 13:53:26 +02:00
Christian Rocha
6e36891857 If a file is currently mid-stash don't let the user stash it again 2020-10-05 13:53:26 +02:00
Christian Rocha
e01dc95d7d Shorten status messages to 2 seconds 2020-10-05 13:53:26 +02:00
Christian Rocha
d6f296c44b Load document body before stashing when stashing from the file listing 2020-10-05 13:53:26 +02:00
Christian Rocha
9db7c2e3ad Make general error msg a struct for type safety 2020-10-05 13:53:26 +02:00
Christian Rocha
0897472ca2 Attempt to cleanup the Msg grab bag formatting 2020-10-05 13:53:26 +02:00
Christian Rocha
5bdf7649b0 Set ID of newly stashed markdowns so we can operate on them 2020-10-05 13:53:26 +02:00
Christian Rocha
04b6089bd9 Stash documents from the stash view 2020-10-05 13:53:26 +02:00
Christian Rocha
651683cd21 Treat Markdown.CreatedAt as values per the updates in the charm lib 2020-10-05 13:53:26 +02:00
Christian Rocha
5613e36154 Adjust dark green color in status message bar 2020-10-05 13:53:26 +02:00