piotrpdev / kuby

Very simple CLI visualization of Kubernetes resources.
0 stars 1 forks source link

TextArea cursor always starts at the bottom #7

Open piotrpdev opened 1 year ago

piotrpdev commented 1 year ago

There is no (public) function in the textarea package to move the cursor to the top: https://pkg.go.dev/github.com/charmbracelet/bubbles@v0.16.1/textarea.

There are only function that change the column of the cursor or move it up/down by one row. There is a moveToBegin function which is perfectly suited for this, but it is not made public and is only available through a shortcut (Ctrl+Home)