15 Commits

Author SHA1 Message Date
Alex Pasmantier
3b3a0ec1ff
feat(windows): add text channel with preview offset for windows (#514)
![image](https://github.com/user-attachments/assets/9f8935db-82fe-4235-8584-ab8b0508b20f)
2025-05-16 12:23:09 +02:00
Alex Pasmantier
ca09c503ca
refactor!(cable): update cable channel preview configuration format + add custom preview offsets (#511)
BREAKING CHANGE: the format of the cable channel files and more
specifically the preview specification is updated to be a single table
named `preview` (with keys `command`, `delimiter`, and `offset`) instead
of three flat fields.

```toml
preview_command = "echo 3"
preview_delimiter = " "
preview_offset = "{1}"
```

becomes: 

```toml
preview.command = "echo 3"
preview.delimiter = " "
preview.offset = "{1}"
```
2025-05-16 01:07:12 +02:00
Alexandre Pasmantier
58d73dbeba
refactor!(previews): drop builtin previewers and all related code and dependencies (#495)
BREAKING CHANGE: No more builtin previews which means channels currently using `:files:` and other builtins will now need to rely on external tools (examples to come).
2025-05-06 00:07:50 +02:00
Alexandre Pasmantier
0514a914b6
fix(alias): rename the aliases channel to alias (#485) 2025-04-29 17:41:57 +02:00
Alexandre Pasmantier
67677fb917
refactor!: all channels are now cable channels (#479)
- tv's default channel (when lauching `tv`) is now configurable via the
`default_channel` configuration option
- add `RUST_BACKTRACE=1` and `--nocapture` to ci testing for better
debugging
- remove all builtin channels and associated glue code as well as the
`ToCliChannel` and `ToUnitChannel` derive macros
- recode all builtin channels using shell commands (along with `fd`,
`bat`, and `rg`)
- add support for interactive shell commands inside cable channels
- drop the `send_to_channel` feature until further notice (will be
reimplemented later on in a more generic and customizable way)
2025-04-27 23:50:14 +02:00
Alexandre Pasmantier
4a584b437c
fix(pwsh): use adequate quoting when formatting preview commands for pwsh (#454)
Fixes #382 and #381


![image](https://github.com/user-attachments/assets/6513cea7-fd42-40e0-8d3b-6bf687f846ca)
2025-04-09 19:02:58 +00:00
Alexandre Pasmantier
7f87b2fb31
refactor(cable): use HISTFILE for bash and zsh history channels (#357)
fyi @andelink
2025-02-08 15:31:49 +01:00
Alex Pasmantier
76bff30759
feat(cable): add default git diff cable channel (#226) 2025-01-06 14:13:04 +01:00
Alex Pasmantier
88b08b798e
fix(cable): zsh-history and bash-history cable channels now point to default histfiles locations (#224) 2025-01-06 13:44:07 +01:00
Alex Pasmantier
3e5f0a44a3
fix(unix): use sed instead of tail for bash and zsh default history channels (#216)
Fixes #215
2025-01-05 00:29:10 +01:00
Alex Pasmantier
971a2e7697
refactor(shell): use $HISTFILE for cable history channels (#210)
Fixes #209
2025-01-02 13:45:45 +01:00
Alex Pasmantier
b49a06997b
feat(shell): shell integration support for fish (#186) 2024-12-30 17:50:45 +01:00
Alex Pasmantier
157d01c4e7
refactor(cable): use tail instead of tac for zsh and bash command history channels (#161) 2024-12-28 23:38:14 +01:00
Alex Pasmantier
ee71e4788f
feat(cable): using builtin previewers inside cable channel prototypes (#156) 2024-12-28 19:35:21 +01:00
Alex Pasmantier
68d118986c
feat(shell): autocompletion plugin for zsh (#145) 2024-12-25 18:53:50 +01:00