Andrey Nering
41d70ee83b
fix(lint): fix all linting issues
2025-04-03 15:23:59 -03:00
Andrey Nering
7fbc040cc8
refactor: rename s to content
2025-02-13 09:10:00 -08:00
shane.xb.qian
9dd8a6f3fd
fix: make pipeline for tui work
...
* 'cat foo.md | glow -t'
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
2025-02-13 09:10:00 -08:00
Shane-XB-Qian
f689c90084
fix: correct abs to rel path conversion ( #683 )
2025-02-11 10:53:34 -03:00
Andrey Nering
e44e4684e1
fix: fallback to the current directory if no argument was given
2025-02-11 05:35:31 -08:00
Andrey Nering
e03817b2cb
feat: add new --tui / -t flag ( #679 )
2025-02-05 16:45:36 -03:00
NijeboerFrank
3989fe0d5e
fix: ensure r key works when filtering files ( #648 )
2025-02-03 17:03:38 -03:00
Carlos Alexandro Becker
ae57cced06
fix: remove more stash-related stuff ( #656 )
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-10-31 09:53:59 -03:00
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
c89c8bd6e7
feat: update glamour ( #634 )
...
* 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>
* fix: perms
* fix: improve logs
* feat: update glamour
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-08-21 14:43:05 -03:00
Carlos Alexandro Becker
0dcf1271dd
feat: suspend
...
closes #333
2024-07-11 18:07:35 -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
Aitva
08c564c858
fix: --all bypass .gitignore rules ( #285 ) ( #504 )
...
* feat(deps): bump github.com/muesli/gitcha from 0.2.0 to 0.3.0
* fix: --all bypass .gitignore rules (#285 )
* Update ui/ui.go
---------
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-03 13:19:19 -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
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 Muehlhaeuser
02ad6ad364
Simplify key event handling
2021-03-10 17:11:34 +01:00
Christian Muehlhaeuser
cfb746e66a
Pass through all keys when editing filter
2021-03-09 08:02:54 -05:00
Christian Muehlhaeuser
2088bac668
Make TUI find markdowns with a variety of file extensions
...
List from GitHub's supported extensions:
- .md
- .markdown
- .mdown
- .mkdn
- .mkd
Fixes #233 .
2021-02-01 05:00:33 +01:00
Christian Rocha
8d0ebb7249
If the only arguement is a directory open a TUI at that path (see #234 )
2021-01-19 15:18:24 -05:00
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