Commit graph

391 commits

Author SHA1 Message Date
one230six
9240ab4625
docs: remove redundant word in comment (#782) 2025-06-12 10:25:33 -03:00
Markus Billharz
e23f237fb7 fix: only show edit if documents are available 2025-05-14 21:32:15 -04:00
Markus Billharz
ee27edd3b1 fix: handle case when selected md is nil 2025-05-14 21:32:15 -04:00
Ktrod
76e08e7dce
fix: sync viewport on half page up/down to prevent duplicate strings in render (#756) 2025-04-28 10:29:49 -03:00
Andrey Nering
41d70ee83b fix(lint): fix all linting issues 2025-04-03 15:23:59 -03:00
Ktrod
05872a506a
fix(watch): watch for dir instead of file to work on all scenarios (#734)
Co-authored-by: Andrey Nering <andreynering@users.noreply.github.com>
2025-04-02 09:47:04 -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
05e5b2e279 feat: watch for file changes and reload automatically 2025-02-11 05:35:31 -08: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
Andrey Nering
009c37602a
fix: restore hint for e / edit on the footer (#678) 2025-02-03 13:20:54 -08:00
NijeboerFrank
3989fe0d5e
fix: ensure r key works when filtering files (#648) 2025-02-03 17:03:38 -03:00
bashbunni
f255f3a603
feat: support GLAMOUR_STYLE for custom pager styles (#587)
* feat: support GLAMOUR_STYLE for custom pager styles

* fix: resolve errors
2024-12-16 07:55:09 -08: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
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
0dcf1271dd
feat: suspend
closes #333
2024-07-11 18:07:35 -03: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
821d51da13
fix: do not show absolute path as note 2024-07-03 13:36:17 -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
Carlos Alexandro Becker
c991ec475d
feat: use x/editor (#543)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-11-17 09:02:52 -03:00
Carlos Alexandro Becker
54dd62a2a4
fix: handle running inside a snap (#527)
* fix: handle running inside a snap

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

* test: fixes

* docs: improve error message

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: bashbunni <bunni@bashbunni.dev>
2023-08-28 09:05:12 -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 Alexandro Becker
c1483664d5
fix: do not use deprecated func (#451)
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-24 15:02:10 -03:00
Carlos Alexandro Becker
8b5468468a
fix: improve editor handling (#449)
* fix: improve editor handling

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

* test: add tests

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

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-24 14:51:11 -03: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 Muehlhaeuser
e5ec06b3b9
Simplify code by removing else block 2021-03-12 13:30:30 +01:00
Christian Muehlhaeuser
2d8f8c2d64
Fix typo 2021-03-12 13:28:38 +01:00
Christian Rocha
e9aa607400
Fix tab contrast in light mode, particularly in macOS terminal 2021-03-11 10:48:27 -05: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 Rocha
4a94b87f49 Drop string methods various some types (again)
They were only for debugging and are prone to falling out of sync.
2021-03-02 13:18:14 -05:00
Christian Rocha
da08ebc0da Don't mutate paginators in the view!! 2021-03-02 13:18:14 -05:00
Christian Rocha
3a572216ad Update pagintion after changing sections when resetting the filter
Fixes #251
2021-03-02 13:18:14 -05:00
Christian Rocha
851d21f6c4 Implement String method on some enum types for easier debugging 2021-03-02 13:18:14 -05:00