Christian Rocha
|
35f1ed21c3
|
More logging around markdown stash failures
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
025dcee3da
|
Fix case where stashDocument could erroneously return a command in a command
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
f2c3ef12ea
|
Show stash feedback optimistically
|
2020-12-24 10:29:22 -05:00 |
|
Nicolas Martin
|
8f3c5df236
|
Highlight the most recent stash item in green in the stash view
...as long as the statusMessage is `Stashed!` is present
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
3c74079669
|
In a filter, deleting stashed news removes those items from the filter
|
2020-12-24 10:29:22 -05:00 |
|
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
|
12f3209238
|
When stashing in a filter, turn local docs to stashed 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
|
64da53ede6
|
Rename a function
|
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
|
683d2c0cf6
|
Move TUI config into its own file
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
8a6c6ef85d
|
Remove extraneous error interface implementations
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
6953c06b46
|
Improve markdown stashing and spinner logic in file listing
|
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
|
88806c8abc
|
Make news stashable
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
4fcf48f92a
|
Filter against local and stashed files, regardless of the current section
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
cfba912be6
|
Maintain pagination and cursor on a per-section basis
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
a67f00a813
|
Press tab/shift+tab to switch between local, stash and news
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
f1ede23b3c
|
Add logging for stash/news fetching
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
f680a9b96a
|
Correct logic for checking when we're in stashed-only-mode
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
c235780eee
|
Appease the linter
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
cffa611dfb
|
When exiting pager or filter, stay in news if we were on news prior
|
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
|
7fabcea06d
|
Make stash note editing and deletion independent of main state
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
2748e75165
|
If we're offline disable the news section
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
fc898831af
|
Now you can filter news too
Also note that the main stash state and the filter state now operate
independently.
|
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 |
|
Nicolas Martin
|
537ef308d2
|
Add a menu item for only display news
|
2020-12-24 10:29:22 -05:00 |
|
Christian Rocha
|
56a9edd312
|
Filter markdowns asynchronously so filtering doesn't block
|
2020-11-25 00:33:04 +00:00 |
|
Christian Rocha
|
c16a146c00
|
Load the whole stash, page by page, automatically
|
2020-11-20 15:02:15 -05:00 |
|
Christian Rocha
|
86e581c79c
|
Add matching stash/news documents to filter results as they're loaded
|
2020-11-19 22:26:31 -05:00 |
|
Christian Rocha
|
4e6460682e
|
Consolidate common model properties to reduce duplication
|
2020-11-18 12:33:39 -05:00 |
|
Christian Rocha
|
58eca2414a
|
Match documents which were stashed in-session then renamed
Note that we've also removed field `displayPath` from struct `markdown`
as it turned out to not be necssary in the first place.
|
2020-11-17 15:57:55 -05:00 |
|
Christian Rocha
|
f9883e8f8d
|
Change 'search' to 'filter'
|
2020-11-17 15:57:55 -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
|
464c84bb13
|
Fix a regression where esc wouldn't clear filtered results
|
2020-11-17 15:57:55 -05:00 |
|
Christian Rocha
|
005aa65d7b
|
The q key should quit when browsing a list of filtered documents
|
2020-11-17 15:57:55 -05:00 |
|
Christian Rocha
|
000a0baae8
|
Use path separator const when building relative path
|
2020-11-17 15:57:55 -05:00 |
|
Christian Rocha
|
75528db9f1
|
Maintain previous filtering after unloading a document
|
2020-11-17 15:57:55 -05:00 |
|
Nicolas Martin
|
23fb61f752
|
Add stash states for searching through notes
- stashStateSearchNotes will be used while entering the search term
- stashStateShowFiltered will only display the filtered notes in the stash view.
|
2020-11-17 15:57:55 -05:00 |
|
Cristian Dominguez
|
998cbf1cc4
|
Ignore YAML frontmatter
|
2020-10-30 19:06:46 +01:00 |
|
Christian Rocha
|
7ea7cc59e3
|
Respect width flag/config setting in the TUI; closes #168
|
2020-10-23 23:38:28 -04:00 |
|
Christian Rocha
|
0949a6656b
|
Update to bubbletea 0.12.0; minimum required changes
|
2020-10-19 15:50:50 +00:00 |
|
Christian Rocha
|
32f0be2688
|
Use the same type to track docs to load and docs loaded
|
2020-10-19 15:50:50 +00:00 |
|
Christian Rocha
|
54a7394448
|
Simplify loading completion check
|
2020-10-19 15:50:50 +00:00 |
|
Christian Rocha
|
fcf109aaff
|
Add flag for local files only (aka disable network) in TUI
|
2020-10-19 15:50:50 +00:00 |
|
Christian Rocha
|
e73190a217
|
Move "stashed only" flag from the package-level into the model
|
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 |
|