Commit graph

106 commits

Author SHA1 Message Date
Carlos Alexandro Becker
736e77dbc6
feat!: rename module to /v2 (#640)
Next version of Glow drops stash support, which is a breaking change.

This makes it accordingly.

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-08-23 12:45:30 -03:00
Carlos Alexandro Becker
4578bc149a
feat: updating glamour (#631)
* feat: updating glamour

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: trim space

* chore: bump

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* chore(deps): bump

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-25 10:32:08 -04:00
Carlos Alexandro Becker
2d5bd3b799
feat: show line numbers configuration option
closes #311
2024-07-11 12:08:57 -03:00
Carlos Alexandro Becker
ad01f380bd
fix: improve line no 2024-07-09 16:46:49 -03:00
Carlos Alexandro Becker
597e56bad4
feat: open editor in current line
closes #547
2024-07-09 16:38:32 -03:00
Carlos Alexandro Becker
d89d79a00c
feat: --preserve-new-lines (#623)
closes #502
2024-07-09 09:50:10 -03:00
Carlos Alexandro Becker
b1d377237d
feat: add 'r' to refresh list and document (#624)
* feat: add 'r' to refresh list

closes #416

Co-authored-by: Dieter Eickstaedt <eickstaedt@deicon.de>

* feat: refresh document

Closes #501

Co-authored-by: fedeztk <federicoserranexus@gmail.com>

---------

Co-authored-by: Dieter Eickstaedt <eickstaedt@deicon.de>
Co-authored-by: fedeztk <federicoserranexus@gmail.com>
2024-07-08 16:15:08 -03:00
Carlos Alexandro Becker
fce3edf7db
feat!: cleanup and updated (#619)
* feat!: cleanup

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* more cleanup

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: more cleanup

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: more cleanup

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-03 12:11:29 -03:00
Christian Muehlhaeuser
8c80ea5f67 fix: lazily init UI 2023-05-09 11:16:02 +02:00
Kian-Meng Ang
442bc281c3 docs: fix typos
Found via `typos --format brief`
2023-03-02 22:22:16 -05:00
Maas Lalani
071783d907
feat: copy contents of document (#439)
* feat: copy contents of document

Co-authored-by: bashbunni <bash@charm.sh>

* fix: use atotto/clipboard for copying

Co-authored-by: bashbunni <bash@charm.sh>
2023-01-20 11:06:02 -05:00
Maas Lalani
6ba2683628
Show edit help when editable (#442)
* fix: only show edit help on pager when editable

* fix: only allow `LocalDoc`s to be edited

* feat: show e • edit help when document is editable
2023-01-19 14:13:41 -05:00
Justin Moser
dd1593b10d Keybindings for editing the document from the pager 2023-01-06 13:37:21 -05:00
Maas Lalani
a07fdb73f0 feat(ui): e to open edit local markdown files in editor
Introduce key binding to allow users to open their `EDITOR` to edit local markdown files in stash and pager view.
2022-11-23 09:40:07 -05:00
Carlos A Becker
4dd3ba1d3c chore: fmt & lint issues 2022-11-11 02:14:26 +01:00
Christian Rocha
db7f49b445 Bump Bubbles to v0.14.0, update accordingly, and simplify spinners
* Re-implement spinner min/max lifetimes in pager
* Remove generalized spin commands in favor of model-level commands
* Update textinput, viewport, and spinner constructors
2022-11-11 02:14:26 +01:00
Christian Rocha
9c9b3e6087 Bump Bubble Tea, Bubbles, Glamour, Lip Gloss, and Termenv and do related updates
This update also removes any usage of the charm/common package

Co-authored-by: Christian Rocha <christian@rocha.is>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-11 02:14:26 +01:00
Christian Rocha
e1d8162428 Add missing newline in pager 2021-01-19 15:30:44 -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
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