Commit Graph

152 Commits

Author SHA1 Message Date
Maas Lalani
8e3bd520fe Clear VirtualText inside SetPage v0.7.1 2021-11-01 11:38:27 -04:00
Maas Lalani
cce6980f62 Use exit code from command if exists 2021-11-01 11:38:27 -04:00
dependabot[bot]
76e2720dda Bump github.com/charmbracelet/bubbletea from 0.18.0 to 0.19.0
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.18.0...v0.19.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 11:25:45 -04:00
Maas Lalani
e668f31f0d Page Up / Page Down documentation update 2021-10-30 14:03:58 -04:00
Janszczyrek
6297d57984 Added Page Up and Page Down navigation (#115)
* Added `Page Up` and `Page Down` navigation
2021-10-30 14:03:04 -04:00
Maas Lalani
acc4e08881 Fix: bug where old file name would be reused
There was a bug where the command would reference an old file name which would be deleted which meant that the code block would not execute on future executions and only work the first time.
2021-10-29 16:57:48 -04:00
dependabot[bot]
e4ae7004a5 Bump github.com/charmbracelet/bubbletea from 0.17.0 to 0.18.0
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.17.0 to 0.18.0.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.17.0...v0.18.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
v0.7.0
2021-10-29 14:46:14 -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
Maas Lalani
4dd723db31 Remove some language tests to remove build dependencies on NixOS v0.6.2 2021-10-22 21:59:18 -04:00
Maas Lalani
7f589d02f7 Remove install from makefile v0.6.1 2021-10-21 21:01:07 -04:00
Maas Lalani
99af53b01f remove redundent ruby tests v0.6.0 2021-10-21 20:41:02 -04:00
Maas Lalani
119fc4d814 Bump dependencies 2021-10-20 21:17:45 -04:00
Maas Lalani
df7d6b5622 Remove 'no windows support' 2021-10-20 20:55:45 -04:00
darmiel
5f76976a4a fix: remove chmod +x <file> 2021-10-20 20:53:15 -04:00
darmiel
518028e6d3 refactor: only use multi, removed single and base 2021-10-20 20:53:15 -04:00
darmiel
e7fa9dad68 fix: broke ruby, oops! 2021-10-20 20:53:15 -04:00
darmiel
a065914f73 feat: multiple code execute commands; rust code support (#104) 2021-10-20 20:53:15 -04:00
Maas Lalani
99c32cc8fc Clean up navigation 2021-10-10 17:36:33 -04:00
stoovon
d561ab99fc Incorporate code review comments
- Remove redundant comment.
- Streamline "G" case.
- Streamline "ClearVirtualText".
- Include NumSlides within State for improved separation.
2021-10-10 17:16:37 -04:00
stoovon
5adcb09a14 Move tests
This completes the refactoring.
2021-10-10 17:16:37 -04:00
stoovon
2dd286e93f Make Navigate a state function
This simplifies the contract for testing.
It's also more idiomatic functional programming.
Also rule of three (i.e. returning three arguments now, so better to return a type).

Moving tests in next commit. Again, demonstrating no gap in coverage.
2021-10-10 17:16:37 -04:00
stoovon
f31e238378 Refactor to extract navigation package
Introduce a clean separation of concerns between model and navigation.
Note that the tests are not moved in this commit, to prove no break in
functionality. They'll be moved in the next commit.
2021-10-10 17:16:37 -04:00
stoovon
b3dda422d0 Vim-like navigation
Supported sequence examples:

* G = go to last slide
* gg = go to first slide
* 4j = go forward 4 slides
* 13G = go to slide 13

Extracted navigateX methods to increase maintainability of
model.Update() given the additional functionality.

Closes https://github.com/maaslalani/slides/issues/96
2021-10-10 17:16:37 -04:00
Eduardo Cuducos
e4a3413409 Uses custom date format YYYY-MM-DD
Fix #106
2021-10-04 21:26:43 -04:00
dependabot[bot]
165c5aa514 Bump github.com/charmbracelet/lipgloss from 0.3.0 to 0.4.0
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.3.0...v0.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-18 23:18:52 -04:00
dependabot[bot]
c84a4ee106 Bump github.com/charmbracelet/bubbles from 0.8.0 to 0.9.0
Bumps [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/charmbracelet/bubbles/releases)
- [Commits](https://github.com/charmbracelet/bubbles/compare/v0.8.0...v0.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-18 22:57:26 -04:00
Maas Lalani
4d826524e1 WithWordWrap 2021-09-18 21:18:10 -04:00
gsol10
dcf3c49fd6 Word wrap support 2021-09-18 21:18:10 -04:00
Maas Lalani
549c9e9828 Create dependabot.yml 2021-09-18 21:15:33 -04:00
Maas Lalani
3bd39616b2 var rename 2021-09-10 16:38:45 -04:00
林玮 (Jade Lin)
644ff86a6b update unittest TestParse 2021-09-10 16:36:46 -04:00
林玮 (Jade Lin)
68adc0a622 be able to run multiple code blocks in a single slide 2021-09-10 16:36:46 -04:00
Rui Chen
4e3be668eb Update x/sys to support go 1.17
Signed-off-by: Rui Chen <rui@chenrui.dev>
v0.5.0
2021-08-22 05:35:48 -04:00
Rui Chen
affd02b103 build: bump to use go1.17
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-08-22 05:35:48 -04:00
R. Aidan Campbell
4008b02778 bump glamour to fix bug in orderedList 2021-08-12 04:08:06 -04:00
Maas Lalani
a714d9ad76 theme, author, date, paging information 2021-08-06 17:16:55 -04:00
Maas Lalani
0d703d353e Update readme 2021-08-06 17:09:16 -04:00
Maas Lalani
0259a851ba Update readme with metadata customizations 2021-08-06 16:57:05 -04:00
Maas Lalani
e1c248f8ca example metadata slide 2021-08-06 16:45:12 -04:00
Maas Lalani
bf5f13f3b3 s/numbering/paging/g 2021-08-06 16:45:12 -04:00
Eduardo Cuducos
74d6d19a30 Adds customization to the bottom metadata
Fix #87
2021-08-06 16:45:12 -04:00
Eduardo Cuducos
45ea575822 Fixes metadata fallback strategy 2021-08-05 17:42:37 -04:00
Maas Lalani
1968b71eee Bump: use bubbletea@master 2021-08-04 10:11:35 -04:00
Maas Lalani
2f93ce04f4 Bump: dependencies
go get -u && go mod tidy
2021-08-04 09:55:11 -04:00
Maas Lalani
93d51aa989 Document new key bindings
* `j` goes to the next slide
* `k` goes to the previous slide
2021-08-02 22:15:07 -04:00
Paul
caa98c45fd ignore shebang 2021-08-02 18:53:08 -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
Maas Lalani
c1f6ab72e4 update deps 2021-07-16 15:04:27 -04:00
Maas Lalani
1c216211b0 remove frontmatter dep 2021-07-16 15:01:25 -04:00
Maas Lalani
982bc2725a minor readme tweaks 2021-07-11 18:20:02 -04:00