8000 UI customization by lalvarezt · Pull Request #546 · alexpasmantier/television · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

UI customization #546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

lalvarezt
Copy link
Contributor

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

alexpasmantier and others added 20 commits June 16, 2025 17:14
precedence should be 
cli flags > local config > global config
…#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>
…ymap changes

toggle remote: Ctrl-r -> Ctrl-t
reload source: Ctrl-r
cycle sources: Ctrl-s
The current implementation downloads the raw prototype files from
github, then deserializes them into `ChannelPrototype` objects and
re-serializes them to the local config.
Because TOML can express same things in multiple ways, it isn't trivial
to have consistent TOML formatting results when re-serializing the
files.
I consider this to be a bug, which is why I'm now directly copying the
downloaded file content to the local config, while keeping a sanity
check by attempting to deserialize it along the way.
…ories

`tv --config-dir=/my/dir --cable-dir=/my/other/dir`
@alexpasmantier
Copy link
Owner

I believe this should branch out of cable-format-rework instead of main 😁

@lalvarezt
Copy link
Contributor Author

I believe this should branch out of cable-format-rework instead of main 😁

🤦 sorry, my bad

@lalvarezt lalvarezt changed the base branch from main to cable-format-rework June 16, 2025 15:18
@lalvarezt
Copy link
Contributor Author

closing this one

@lalvarezt lalvarezt closed this Jun 16, 2025
@lalvarezt lalvarezt deleted the UI-Customization branch June 17, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0