alexandre pasmantier
c93ddeeadb
feat(cli): registering transparent selection keys for tv
...
Fixes #468
2025-07-25 18:12:31 +02:00
Alex Pasmantier
72c34731ec
test(pty): longer delay when checking pty exit code
2025-07-25 01:43:29 +02:00
Alex Pasmantier
098f3f4fe4
feat: ansi-styled results with --ansi
or corresponding channel option ( #655 )
...
# Examples:
## ripgrep
```toml
[metadata]
name = "text"
description = "A channel to find and select text from files"
requirements = ["rg", "bat"]
[source]
command = "rg . --no-heading --line-number --colors 'match:fg:white' --colors 'path:fg:blue' --color=always"
ansi = true
output = "{strip_ansi|split:\\::..2}"
[preview]
command = "bat -n --color=always '{strip_ansi|split:\\::0}'"
env = { BAT_THEME = "ansi" }
offset = '{strip_ansi|split:\::1}'
[ui]
preview_panel = { header = '{strip_ansi|split:\::..2}' }
```
<img width="2880" height="1620" alt="Screenshot From 2025-07-19
20-56-53"
src="https://github.com/user-attachments/assets/67055fd1-d03e-4c4b-ad82-dbc3ba8c80d4 "
/>
## git-log
```toml
[metadata]
name = "git-log"
description = "A channel to select from git log entries"
requirements = ["git", "delta"]
[source]
command = "git log --graph --pretty=format:'%C(yellow)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --color=always"
output = "{strip_ansi|split: :1}"
ansi = true
[preview]
command = "git show -p --stat --pretty=fuller --color=always '{strip_ansi|split: :1}' | delta"
```
<img width="2880" height="1620" alt="Screenshot From 2025-07-19
19-17-15"
src="https://github.com/user-attachments/assets/be97ff35-8a35-4d26-ad14-afd5ece3fed6 "
/>
2025-07-19 22:52:12 +02:00
LM
6b818b927c
test: make file based testing more robust with unique identifiers ( #649 )
...
## 📺 PR Description
update all file based tests to follow a naming convention in a dedicated
testing folder to prevent clashes. Make sure all needed files are in
place before running the test
## Checklist
<!-- a quick pass through the following items to make sure you haven't
forgotten anything -->
- [x] my commits **and PR title** follow the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/#summary ) format
- [ ] if this is a new feature, I have added tests to consolidate the
feature and prevent regressions
- [ ] if this is a bug fix, I have added a test that reproduces the bug
(if applicable)
- [x] I have added a reasonable amount of documentation to the code
where appropriate
2025-07-18 01:56:21 +02:00
alexandre pasmantier
23f38f9bb4
test: fix flaky tests and increase frame stability timeout
2025-07-13 12:35:51 +02:00
alexandre pasmantier
f60b492383
test(cli): add test that validates piping tv is working as expected
2025-07-04 19:50:58 +02:00
LM
42e2728269
test(cli): new cli test suite ( #564 )
...
new set of test that cover the overall functionality of the cli
---------
Co-authored-by: alexandre pasmantier <alex.pasmant@gmail.com>
2025-06-28 16:59:57 +02:00
alexandre pasmantier
601580953a
docs(tests): simple documentation for the PtyTester
2025-06-28 16:56:09 +02:00
alexandre pasmantier
a59aab67a9
test: add integration test for --watch
2025-06-28 16:56:09 +02:00
alexandre pasmantier
dd832fcfc9
test: a cleaner integration tests directory structure
2025-06-28 16:56:09 +02:00