Skip to content
Discussion options

You must be logged in to vote

As you've already identified, no, there is no support for that in the binding facility as it stands. I suppose my first question is: what exactly is it you're wanting to do that would require such support? In the example you've given above it looks like you want to add vi-like navigation to TextLog, is that the case?

Normally, if I want to extend the bindings for a particular widget I inherit from it and add my own bindings. By way of illustration, someone asked a wee back how they could do similar for the MarkdownViewer and I gave this as an example:

from pathlib import Path

from textual.app     import App, ComposeResult
from textual.widgets import Header, Footer, MarkdownViewer
from te…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2206 on April 03, 2023 14:11.