406 Commits
Author SHA1 Message Date
dependabot[bot]andGitHub 167e9067bc feat(deps): bump github.com/charmbracelet/lipgloss from 0.7.1 to 0.9.1 (#424) v0.17.0 2023-10-13 12:32:27 +00:00
lc-1010andChristian Rocha f53b3d9f61 fix: Unicode character encoding error 2023-09-28 10:29:30 -04:00
dependabot[bot]andGitHub 540c8ac803 chore(deps): bump actions/checkout from 3 to 4 (#416) 2023-09-05 11:58:27 +00:00
eda891258c Support suggestions and autocompletion in textinput (#407)
* migrate all autocomplete-work from old branch

* added support for multiple suggestions

* fix linter issues

* refactored to only offer matching suggestions for completion

* fix: SetSuggestions + Suggestions

* make: configuration behaviour configurable

* fix for double-width runes

* refactored all suggestions to be rune-arrays

also: accepting suggestions does not overwrite the already given input, rather appends

* fix: make suggestions and OnAcceptSuggestions unexported

* refactor: refreshingMatchingSuggestions -> updateSuggestions

---------

Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-08-21 11:26:02 -04:00
naglisandGitHub 95d7be54d9 refactor(list): reduce allocations in filterItems (#396)
As the number of items in `targets` is known, use `make` with the
expected size instead of appending, which requires more allocations as
the `targets` slice grows.
2023-07-25 14:06:33 -07:00
Maas LalaniandGitHub 0bdcc628fb fix(list): No items found. -> No items. (#393) 2023-07-11 14:42:33 -04:00
naglisandGitHub fa8207d8d8 fix(list): typo in doc comment (#391) 2023-07-08 17:10:26 -07:00
dependabot[bot]andGitHub 23b97e3a77 feat(deps): bump github.com/muesli/termenv from 0.15.1 to 0.15.2 (#390) 2023-06-28 00:43:23 +00:00
Carlos Alexandro BeckerandGitHub 7053a7d757 feat(deps): update fuzzy library (#379) 2023-06-14 11:10:57 -03:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
07e6f5ab9d feat(deps): bump github.com/charmbracelet/bubbletea (#383)
Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.24.1 to 0.24.2.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.24.1...v0.24.2)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-14 10:32:47 -03:00
Yurii RashkovskiiandChristian Rocha fe31dc0a97 Problem: can't determine if the progress bar stopped updating
This would be useful to know to stop displaying it after the user was shown
the progress bar to render to its end.

Solution: expose `IsComplete` method is based on what's been drawn
2023-06-13 12:48:00 -04:00
Christian RochaandGitHub afd7868712 chore: filepicker edits (#382)
* feat(filepicker): ignore messages from other filepicker instances

* feat(filepicker): initialize default styles against a lipgloss renderer

* chore(filepicker): swap global var for function with default keymap
v0.16.1
2023-05-31 14:04:43 -04:00
Maas Lalani 2eaa8e3df9 docs(readme): add file picker 2023-05-31 12:56:56 -05:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Carlos Alexandro Becker
6034e68184 feat(deps): bump github.com/charmbracelet/bubbletea from 0.23.1 to 0.24.0 (#377)
* feat(deps): bump github.com/charmbracelet/bubbletea

Bumps [github.com/charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) from 0.23.1 to 0.24.0.
- [Release notes](https://github.com/charmbracelet/bubbletea/releases)
- [Commits](https://github.com/charmbracelet/bubbletea/compare/v0.23.1...v0.24.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>

* feat: go 1.17

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

* feat(deps): bubbleta v0.24.1

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
v0.16.0
2023-05-25 10:35:59 -03:00
bashbunniandGitHub 25414a8c48 docs: add issue template (#367)
* docs: add issue template

* chore(template): add locale
2023-05-23 11:57:35 -07:00
remiposoandGitHub 9266653c39 Reset blink only when CursorBlink (#378) 2023-05-13 12:56:18 -04:00
Ayman Bagabas 39f4eeae2c fix(ci): remove soft-serve workflow 2023-05-12 14:14:41 -04:00
Carlos Alexandro Becker 7de306a57b docs: update license
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-11 12:37:25 +00:00
Christian Rocha e9dfea975f feat(spinner): periods of ellipsis
Handy for animating the three periods after a string, i.e. "Loading..."
2023-05-05 14:15:12 -04:00
Raphael 'kena' PossandMaas Lalani afb975b469 feat(textarea): make max width/height configurable 2023-05-01 13:06:34 -04:00
Maas Lalani dc58240609 chore(lint): help msg unused param 2023-05-01 12:56:08 -04:00
Carlos Alexandro BeckerandMaas Lalani 7590e13c2a fix: filepicker on empty directory
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-01 09:58:44 -04:00
Kirn KimandMaas Lalani 9bfe8185f1 fix: line freeze on dir open + var typo 2023-04-28 14:08:34 -04:00
Kirn KimandMaas Lalani 325fd48de7 fix: var name typo fix 2023-04-28 14:08:34 -04:00
Kirn KimandMaas Lalani a79567aa2c fix: scroll margain 2023-04-28 14:08:34 -04:00
Maas Lalani ab1f7134e4 fix: deprecate CursorStyle in favour of Cursor.Style 2023-04-08 14:19:53 -04:00
Maas Lalani 8865e0675a feat: add AllowedTypes to file picker to prevent selecting certain files 2023-04-05 13:17:50 -04:00
bashbunniandGitHub 1de5816ab4 docs(list): add FAQ (#359) 2023-03-24 11:57:13 -07:00
jon4hzandGitHub 5b22c92cf3 feat(list): infinite scrolling (#316) 2023-03-24 11:05:53 -07:00
Ben DimbeckandGitHub 876d5af152 fix(progress): last gradient color off by one (#338)
* fix(progress): add failing test

The progress bar component does not render the gradient 100% correctly:
The very last color that appears in the rendered progress bar should be
the second color defined in the gradient but it is not, due to an
off-by-one one error.

This test case shows this. The next commit will contain the fix.

* fix(progress): use the second gradient color as the last char of the bar

Due to an off-by-one error, the very last rendered color+char was never
exactly the second specified gradient color. The fixed code looks less
elegant unfortunately, but now the last color is the desired one.
2023-03-24 10:32:43 -07:00
Stefan BildlandMaas Lalani 3a1a24e211 refactor(table): remove unused cmds variable 2023-03-17 13:47:12 -04:00
dependabot[bot]andChristian Muehlhaeuser db8de3bf53 chore(deps): bump actions/setup-go from 3 to 4
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 11:09:02 +01:00
Mikael FangelandGitHub 7ba044773b fix: add bounds checking to the selectedrow func (#351) 2023-03-11 15:47:31 +01:00
Maas Lalani 5db9f39f56 fix: set model max view to height initially 2023-03-09 14:20:08 -05:00
Maas Lalani 1ca90b3c94 feat(filepicker): allow setting current directory 2023-03-08 17:00:21 -05:00
Glenn GondaandMaas Lalani 78a82d1616 fix(textinput): KeyMap typo 2023-03-07 22:01:46 -05:00
Maas LalaniandGitHub 3372cf1aea Filepicker Bubble (#343)
* feat: filepicker bubble

* fix: bump bubbles to 1.16

* fix: allow customization of empty state

* fix: change `Enter` to `Open`

* fix: lint gomnd

* fix: don't send msg, instead check if this update caused a selection
2023-03-06 10:59:59 -05:00
Savannah OstrowskiandChristian Rocha e4e3137a64 Remove unused BackgroundStyle in text input 2023-03-01 19:52:54 -05:00
Glenn GondaandChristian Rocha 3d3ed883d3 docs: fix typos and improve comment clarity 2023-02-16 17:49:32 -05:00
Raphael 'kena' PossandMaas Lalani ee382285e7 fix(textarea): fix data corruption after multi-line input
Previously, when inserting multiple lines of input at once, the underlying
Go data array was incorrectly shared in memory across multiple rows
of the textarea. This was causing input corruption, where a user trying
to modify one line would see their text added on the next line as well.

This patch fixes it.
2023-02-05 10:19:05 -08:00
Raphael 'kena' PossandMaas Lalani db06ae17d3 fix(textarea): support pastes that end with a newline character
My previous fix did not properly handle a multi-rune input that *ends*
with a newline character. In that case, the final newline was removed.

I found this using the test suite I built for textarea in bubbline at
https://github.com/knz/bubbline/tree/main/editline/internal/textarea/testdata.
2023-01-24 14:19:14 -05:00
a6a12c4a31 fix(textarea): app would crash if deleteWordRight was called at the end of line (#313)
* fix(textarea): app would crash if deleteWordRight was called at the end
of line

* fix(textarea): deleteWordRight would work incorrectly

Co-authored-by: infastin <thecookied123@gmail.com>
2023-01-23 13:10:21 -05:00
Christian RochaandGitHub 4a71cee5a1 fix(viewport): performance scrolling (#312)
* fix(viewport): performance scroll behavior for line up/down

* fix(viewport): performance scrolling in multi-line operations
v0.15.0
2023-01-20 10:51:00 -05:00
Yusuf Malikul MulkiandGitHub 30998513ba ypo (#300) 2023-01-19 00:20:02 -05:00
Raphael 'kena' PossandMaas Lalani 53724e6a72 feat: bracketed paste in textarea + textinput
This also fixes a longstanding bug where newlines, tabs
or other control characters in the clipboard would cause
the input to be corrupted on paste.
2023-01-09 16:30:24 -05:00
Maas Lalani e78f923af6 feat(table): add SetColumns method to set columns 2022-12-01 09:41:08 -05:00
Marc-Antoine GiguèreandMaas Lalani 9bcda81051 revert module name 2022-12-01 09:30:35 -05:00
Marc-Antoine GiguèreandMaas Lalani 9e69e31e23 update module declaration 2022-12-01 09:30:35 -05:00
Marc-AntoineandMaas Lalani b528165592 expose table's rows 2022-12-01 09:30:35 -05:00
dependabot[bot]andMaas Lalani 6555e5111e 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>
2022-12-01 09:27:56 -05:00