terphite icon indicating copy to clipboard operation
terphite copied to clipboard

Cursor movement in target prompt doesn't work

Open olof opened this issue 7 years ago • 2 comments

The target prompt (for editing a selected target) isn't allowing cursor movement (e.g. move cursor to beginning of line). Neither cursors (left, right) or "traditional" terminal shortcuts (readline's emacs mode) like ctrl+a (beginning of line), ctrl+b (move back one word).

This makes it hard to edit targets selected from the tree menu (e.g. filter the metrics through some function) (copy-paste in the blessed terminal ui is also problematic, so not a workaround).

From packages-locked.json:

  "name": "terphite",
  "version": "0.0.3",
  "lockfileVersion": 1,
  "requires": true,
  "dependencies": {
    ...
    "blessed": {
      "version": "git+https://github.com/benwtr/blessed.git#e7a82bdc8593c6a9ef03ec18fafdc9e061aedc83",
      "from": "git+https://github.com/benwtr/blessed.git#e7a82bdc8593c6a9ef03ec18fafdc9e061aedc83"
    },
    ...

olof avatar Jul 31 '18 14:07 olof

If you want to have a go at fixing it, I'd happily take pull requests. You might be able to simply upgrade to the latest version of blessed.

benwtr avatar Jul 31 '18 22:07 benwtr

Sorry, forgot to get back. But it wasn't as easy as upgrading blessed, and I didn't immediately found a more suitable component (I have no experience with coffeescript/blessed, so this shouldn't be taken as that there isn't one right before my eyes).

Thanks for this cool tool anyway!

olof avatar Aug 24 '18 00:08 olof