16 Commits

Author SHA1 Message Date
Maas Lalani
5b74919376 Search Styles 2021-11-01 14:28:05 -04:00
Daniel
ac106d1060 Vim-like search functionality (#112)
* feat: basic command system

* feat: implemented forward search, backward search and `:<slide>`-command

* fix: golint

* fix: removed `fmt.Sprintf`

* fix: proper args splitting, added `goto` example

* refactor: less verbose output, removed `goto`-example

* fix: ignore empty commands

* refactor: remove `:`-commands, moved `search` to `navigation` package

* feat: implemented different search-types: header-search, full-text search (case sensitive, insensitive and regex)

* feat: go to next occurrence with `ctrl+n`

* fix: regex search

* docs: added search instructions

* refactor: removed search types, style changes

* docs: update README.md

* docs: update README.md

* refactor: `GetSlides()` -> `Pages()`, `Buffer` -> `Query`

* feat: use `tea.KeyRunes` to allow international characters (such as `ä` or `動`)

* test: added test for search

* test: added ignore-case flag test
2021-10-27 12:29:20 -04:00
satoru
ad7fc7871c Fix #73, add support for fetching remote theme (#85)
* Fix #73, add support for fetching remote theme

* Close file

* Fix texting in example

* Anything with the prefix http we should attempt to fetch

Co-authored-by: Buildkite <dev@flexport.com>
Co-authored-by: Maas Lalani <maaslalani0@gmail.com>
2021-07-23 10:08:45 -04:00
Iain Earl
49ef7d7cd4 Invert error handling for theme loading 2021-07-05 11:36:32 -04:00
Iain Earl
c184a8b27b Add handling logic for custom theme files 2021-07-05 11:36:32 -04:00
Britton Hayes
631057b5cb Added light mode support and support for EnvNoColor 2021-06-12 18:22:24 -04:00
Britton Hayes
e21cc0c0b3 Allow user customization for slide themes
Closes #1.

This change allows users to add a configuration section to their slides,
which allows them to specify a different theme if they would like to
change the styles of the default theme.

A user can add
```
---
theme: ascii
---
```

To use an ascii theme or use `theme: ./styles.json` to specify their own
custom JSON theme using glamour styles.

Co-authored-by: Britton Hayes <brittonhayes@users.noreply.github.com>
2021-06-12 16:59:00 -04:00
Maas Lalani
f68b80220b Use chroma theme: dracula
Rather than defining all of the colours ourselves, we can simply choose
a theme that is supported by `chroma`.
2021-06-08 23:56:09 -04:00
Maas Lalani
5d89bf2551 Fix #14: go vet ./... Redefinition
JoinVertical was being redefined due to `lipgloss` being dot-imported.
Changes to explicitly import `lipgloss` and keep all functions scoped
correctly.
2021-06-08 22:27:37 -04:00
Maas Lalani
47d2a87d42 embed styles 2021-06-05 17:57:31 -04:00
Maas Lalani
9b249b617f Revert "no need for user to specify theme.json"
This reverts commit 7af1081e7e.
2021-06-05 17:50:54 -04:00
Maas Lalani
7af1081e7e no need for user to specify theme.json 2021-06-05 17:47:05 -04:00
Maas Lalani
0f1ebff87f remove double import 2021-05-24 12:23:20 -04:00
Maas Lalani
debbcccad8 theme.json 2021-04-05 12:56:15 -04:00
Maas Lalani
20c68adf52 JoinVertical 2021-04-05 12:16:41 -04:00
Maas Lalani
5bcb013fba progress 2021-04-05 12:10:39 -04:00