Commit graph

66 commits

Author SHA1 Message Date
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
Christian Rocha
593d9f07e7 Stash local files from the pager 2020-10-05 13:53:26 +02:00
Christian Rocha
ddbacffc0b Log IO errors if a logfile is set 2020-10-05 13:52:51 +02:00
Christian Rocha
c55bb23744 Minor comments and cleanup in the TUI 2020-10-05 13:52:36 +02:00
Christian Rocha
fc2f05626e Pressing q quits no matter where you are 2020-10-05 13:51:31 +02:00
Christian Rocha
d941957b92 Also exit the pager with left arrow, h and delete/backspace 2020-10-05 13:51:31 +02:00
Christian Rocha
3619ad137a Remove the bottom gap when closing the pager help whilst at the bottom 2020-10-05 13:50:38 +02:00
Christian Rocha
3b06c1fcd6 Correction help-toggling method name in pager 2020-10-05 13:50:19 +02:00
Christian Rocha
1200b86729 Cleanup pager status bar view thanks to the latest updates in reflow 2020-10-05 13:50:03 +02:00
Christian Rocha
dd8c650830 Only show memo key in pager help for user stashed markdown 2020-10-05 13:49:31 +02:00
Christian Rocha
ac872bf41f Let's now refer to userMarkdown as stashedMarkdown 2020-10-05 13:49:31 +02:00
Christian Rocha
7b6c3b3740 Don't allow users to set notes on local files 2020-10-05 13:49:31 +02:00
Christian Rocha
8370f7441e Fix a crash when opening pager help in very narrow windows 2020-10-05 13:48:22 +02:00
Christian Rocha
6e72cbdc4f Consolidate debug config stuff 2020-10-05 13:46:49 +02:00
Christian Rocha
fa06996383 Dispell a magic number 2020-10-05 13:46:09 +02:00
Christian Rocha
048b484df2 Reset y offset when resetting pager 2020-10-05 13:46:09 +02:00
Christian Rocha
dd828966eb Remove extra height and positioning stuff 2020-10-05 13:46:09 +02:00
Christian Rocha
d3ac07c70a Fix bottom line jitteriness with performance rendering 2020-10-05 13:46:09 +02:00
Christian Rocha
232a9919c2 Respect high performance flag 2020-10-05 13:46:09 +02:00
Christian Rocha
b2df0cae8f Integrate high performance viewport, but not without issue 2020-10-05 13:46:09 +02:00
Christian Rocha
9eac9e2253 Use new, simplified window resize handling 2020-10-05 13:46:09 +02:00
Christian Rocha
dde45d99e8 Pressing 'q' when setting a note in the pager shouldn't cancel the note 2020-10-05 13:46:09 +02:00
Christian Rocha
562d02dc43 Properly truncate fullwidth/double-byte chars 2020-10-05 13:46:09 +02:00