36 Commits

Author SHA1 Message Date
alexandre pasmantier
6a11627546 fix: text channel colon splitting
Fixes #651
2025-07-18 01:09:42 +02:00
Leonardo Vencovsky
313c0c3238
feat(cable): Channels for AWS Buckets and Instances (#647)
## 📺 PR Description

Added `aws-buckets` and `aws-instances` channels.

## Checklist

- [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)
- [ ] I have added a reasonable amount of documentation to the code
where appropriate

---------

Co-authored-by: Leonardo Vencovsky <leoven@Leonardos-MacBook-Pro.local>
Co-authored-by: alexandre pasmantier <alex.pasmant@gmail.com>
2025-07-15 22:42:25 +02:00
LM
177ac79bcf
fix(cable): quote shell arguments and fix line endings for linux files (#619)
## 📺 PR Description

Fixes #616 
Added quotes to prevent shell argument escape

## 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)
- [ ] I have added a reasonable amount of documentation to the code
where appropriate
2025-07-10 12:38:02 +02:00
Vijayabaskar
55560db112
fix (shell) : nu shell integration enhancement (#607)
## 📺 PR Description

Fixes #592 

-  Left of cursor extraction - lhs
- Right of cursor extraction - rhs
- Add space if needed - lhs_with_space
- Concatenate lhs + output + rhs - new_line
- Set line and cursor position - command line edit --replace and command
line set-cursor
- add nu-history for both windows and unix channels
## 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)
- [ ] I have added a reasonable amount of documentation to the code
where appropriate

---------

Co-authored-by: alexpasmantier <alex.pasmant@gmail.com>
2025-07-09 15:22:33 +02:00
Kacy Stocks
17439dace5
fix(channels): quote bat arguments
Adding `'` to bat to prevent errors in preview for Unix cable dotfiles
and files configurations.
2025-07-06 18:06:57 +02:00
alexandre pasmantier
639caa1a30 feat(stdin): accept various entry separator characters 2025-06-29 17:16:23 +02:00
Alex Pasmantier
7b40e769ae feat(cable): migrate windows channels (#567) 2025-06-28 16:59:57 +02:00
alexandre pasmantier
7067a2ba93 feat(remote): rework remote UI and add description and requirements panels 2025-06-28 16:56:09 +02:00
alexandre pasmantier
51617b1775 refactor: clearer separation of channels vs remote, better deserialization of prototype sub-structures, etc. 2025-06-28 16:56:09 +02:00
lalvarezt
a49f104670 feat(channel): add channel global shortcuts 2025-06-28 16:56:09 +02:00
LM
510e7b6338 feat(ui): add support for customizing input_header, preview_header and preview_footer
This PR adds support for customizing

* input_header
* preview_header
* preview_footer

all the items are of type MultiTemplate, this gives some flexibility
when showing the selected value, let's say on the preview header, if
it's long or you want only a section

---------

Co-authored-by: alexandre pasmantier <alex.pasmant@gmail.com>
2025-06-28 16:56:09 +02:00
alexandre pasmantier
e06e5e6a37 refactor(cable): update preview size for files and env 2025-06-28 16:56:09 +02:00
LM
783d96bb67 feat(ui): preview size customization (#545)
This PR adds support for configuring the preview panel size through the CLI, the configuration file, and cable files.
2025-06-28 16:56:09 +02:00
alexandre pasmantier
6b38ce2058 feat(cable): migrate the rest of unix channels 2025-06-28 16:56:09 +02:00
alexandre pasmantier
b0c25b19be fix: rollback unwanted modifications on text and env prototypes 2025-06-28 16:56:09 +02:00
alexandre pasmantier
466a74341d refactor: strip new channels to their bare minimum config 2025-06-28 16:56:09 +02:00
alexandre pasmantier
c80e9b18cb fix: "toggle source" leftovers 2025-06-28 16:56:09 +02:00
LM
9e306d93bc feat: new channel and added reload and toggle actions (#540)
Add env channel
Add support to toggle between sources and reload them, this enables the
following

```toml
[source]
command = ["fd -t f", "fd -t f -H"]

[keybindings]
toggle_source = "ctrl-t"
reload_source = "ctrl-r"
```

now you can have the same channel with two different representations,
for example with and without hidden files

the change is backwards compatible, if you put a simple string nothing
changes

---------

Co-authored-by: alexandre pasmantier <alex.pasmant@gmail.com>
2025-06-28 16:56:09 +02:00
alexandre pasmantier
e76a3df776 refactor(cable)!: cable format redesign 2025-06-28 16:56:09 +02:00
Alex Pasmantier
4d80e95c6b
feat(shell): add support for integration with NuShell (#410)
Fixes #181

---------

Co-authored-by: nick <64329369+nasteffe@users.noreply.github.com>
Co-authored-by: Victor <victor@Users-MBP.lan>
2025-06-23 19:39:28 +02:00
Alex Pasmantier
b372fe86ea
refactor(cable): add files and text channels with the new configuration format (#534) 2025-06-10 14:10:22 +02:00
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