Commit graph

156 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 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 c356273a76
chore: update glamour to master
fixes  #485

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-10 17:02:37 -03:00
Carlos Alexandro Becker fe066f2140
feat: allow config from CHARM_CONFIG_HOME and XDG_CONFIG_HOME (#621)
* feat: allow config from CHARM_CONFIG_HOME

closes #594
closes #495
closes #328
closes #475

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

* fix: improvements on config handling

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

* chore: log

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-08 22:33:49 -03:00
Carlos Alexandro Becker f1cf0ba785
feat: man pages
closes #269
2024-07-03 13:59:11 -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
dependabot[bot] 3ee20895b1
chore(deps): bump github.com/charmbracelet/glamour from 0.6.0 to 0.7.0 (#600)
Bumps [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/charmbracelet/glamour/releases)
- [Commits](https://github.com/charmbracelet/glamour/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/glamour
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-03 12:26:38 -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
dependabot[bot] cece1377cd
chore(deps): bump github.com/mattn/go-runewidth from 0.0.14 to 0.0.15 (#576)
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.14 to 0.0.15.
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.14...v0.0.15)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-runewidth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 12:59:38 -05:00
dependabot[bot] feefb88e70
chore(deps): bump github.com/spf13/cobra from 1.6.1 to 1.8.0 (#577)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.1 to 1.8.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.6.1...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 12:59:24 -05:00
dependabot[bot] ec12c2717d
feat(deps): bump golang.org/x/sys from 0.15.0 to 0.17.0 (#570)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/sys/compare/v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 12:59:13 -05:00
dependabot[bot] f1437fce69
chore(deps): bump github.com/dustin/go-humanize (#575)
Bumps [github.com/dustin/go-humanize](https://github.com/dustin/go-humanize) from 1.0.1-0.20200219035652-afde56e7acac to 1.0.1.
- [Commits](https://github.com/dustin/go-humanize/commits/v1.0.1)

---
updated-dependencies:
- dependency-name: github.com/dustin/go-humanize
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 12:54:52 -05:00
dependabot[bot] d9bb637f5e
feat(deps): bump github.com/charmbracelet/bubbletea (#567) 2024-02-13 12:37:42 -05:00
dependabot[bot] 6d86484b5e
feat(deps): bump golang.org/x/net from 0.12.0 to 0.17.0 (#568)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.12.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.12.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 12:08:10 -05:00
dependabot[bot] 2b91a93645
feat(deps): bump golang.org/x/crypto from 0.11.0 to 0.17.0 (#569)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.11.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.11.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 12:00:18 -05: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 f0734709f0 feat(deps): update some dependencies
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-07-13 14:47:06 +02:00
Christian Muehlhaeuser ad21129703 chore: bump charm dep 2023-05-09 11:16:02 +02:00
Christian Rocha 6543979ed1 fix: performance scrolling
This update fixes performance scrolling by way of the latest Bubbles
release: v0.15.0.
2023-01-20 11:55:40 -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
dependabot[bot] b9f519e1ea feat(deps): bump github.com/charmbracelet/bubbletea
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.23.0 to 0.23.1.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.23.0...v0.23.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbletea
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06 13:19:12 -05:00
dependabot[bot] 5b43697cb3 feat(deps): bump golang.org/x/text from 0.4.0 to 0.6.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.4.0 to 0.6.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.4.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06 13:18:06 -05:00
Carlos A Becker 60d98a01e5 feat: bump deps 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
Carlos A Becker d2870afb3d chore: go 1.16
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-11 02:14:26 +01:00
Ayman Bagabas dec59a2199
feat(ci): use config files from meta repo (#389)
* chore: bump cobra & viper

* feat(ci): use config files from meta repo

* publish docker images
* generate shell completions
* generate man pages

* feat(ci): use shared workflows from meta repo
2022-10-26 16:05:52 -03:00
Carlos Alexandro Becker c75609322f
feat(deps): update cobra and viper (#346)
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-05-26 16:35:24 -03:00
Tobias Klauser 1f2b3671c7 Use golang.org/x/term
The golang.org/x/crypto/ssh/terminal package is deprecated and merely a
wrapper around golang.org/x/term. Use the latter directly and avoid a
direct dependency on the former.
2021-04-29 15:34:10 +02:00
Christian Muehlhaeuser 4863f57cea
Bump bubbletea, glamour, and go-runewidth deps 2021-04-08 16:31:00 +02:00
Christian Muehlhaeuser 92b86072a4
Bump termenv to v0.8.1 2021-04-03 01:47:38 +02:00
Christian Muehlhaeuser 4f9ad6721c
Bump bubbletea dependency to v0.13.1 2021-03-13 04:38:54 +01:00
Christian Muehlhaeuser 0333e88252
Bump bubbletea dependency 2021-03-12 12:57:45 +01:00
Christian Muehlhaeuser b6ec7ae14c
Bump glamour dependency 2021-03-11 16:39:18 +01:00
Christian Muehlhaeuser 5b29a023bf
Bump charm, babyenv, termenv, cobra, and viper dependencies 2021-03-11 16:33:53 +01:00
Christian Rocha dedf7967b0 Bump Bubble Tea dependency 2021-03-02 13:18:14 -05:00
Christian Muehlhaeuser 08a8d4b5ed Bump gitcha to v0.2.0 2021-03-01 14:01:27 +01:00
Christian Rocha 542133c42b Bump Bubble Tea and Bubbles dependencies 2021-01-19 15:30:44 -05:00
Christian Rocha 28ccb85b2e Use ANSI-aware truncation 2020-12-24 10:29:22 -05:00
Christian Rocha 8d7b614688 Fine tuning + subtle behavioral adjustments to spinners + status messages 2020-12-24 10:29:22 -05:00
Christian Rocha 88806c8abc Make news stashable 2020-12-24 10:29:22 -05:00
Nicolas Martin d9242c9a72 Expand the path for a specified style file 2020-12-16 17:04:35 +01:00
Christian Rocha de09997fdb Normalize strings during filtering
This makes it easier to match characters with diacritics (i.e. you can type 'o'
and match an 'ö').
2020-11-17 15:57:55 -05:00
Nicolas Martin d98e3c11ba Switch to sahilm/fuzzy for fuzzy-filtering and text highlighting 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
Nicolas Martin e985f96dc4 Add fuzzy filtering for stash notes 2020-11-17 15:57:55 -05:00
Christian Muehlhaeuser d5446bfddd Add config file support
The combination of Viper & go-app-paths lets us detect a config file
'glow.yml' in various default config paths (XDG-compliant), across all
platforms.

Currently there are only two configuration values:

local: true
style: "/some/style.json"

Additionally, this introduces mapping environment variables to config
values:

GLOW_LOCAL="true"
GLOW_STYLE="/some/style.json"

The values will be used in this order:

CLI-arg > ENV-var > config file > default
2020-10-24 05:16:00 +02:00
Christian Rocha cde8999cf6
Bump Bubble Tea and Bubbles deps for keybinding improvements 2020-10-22 15:59:22 -04:00
Christian Rocha 0949a6656b Update to bubbletea 0.12.0; minimum required changes 2020-10-19 15:50:50 +00:00