Commit graph

73 commits

Author SHA1 Message Date
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
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