liner issueshttps://gitlab.redox-os.org/redox-os/liner/-/issues2019-09-02T00:01:53Zhttps://gitlab.redox-os.org/redox-os/liner/-/issues/1[feature request] allow binding keys to functions2019-09-02T00:01:53ZMichael Aaron Murphymmstick@pm.me[feature request] allow binding keys to functions*Created by: sanga*
For example to key bind to FZF functions (https://github.com/junegunn/fzf) such that ctrl+R could use fzf to fuzzy search history.*Created by: sanga*
For example to key bind to FZF functions (https://github.com/junegunn/fzf) such that ctrl+R could use fzf to fuzzy search history.https://gitlab.redox-os.org/redox-os/liner/-/issues/14Support for arbitrary streams for input/output2021-09-20T10:58:06ZJanez UrevcSupport for arbitrary streams for input/outputIt seems that `liner` currently only supports standard input/output. [Goose](https://github.com/tag1consulting/goose) will accept connections via telnet and expose a command line interface, which allows users to control their load tests....It seems that `liner` currently only supports standard input/output. [Goose](https://github.com/tag1consulting/goose) will accept connections via telnet and expose a command line interface, which allows users to control their load tests. We would like to use `liner` to improve the UX of the said command line, but we would need to be able to wire it into a TCP stream instead of stdin/stdout.
I would like to propose to make it possible to wire `liner` into an arbitrary input/output stream. This approach would allow us to achieve what we want while also opening a lot of other possibilities for the library.
Is this something that would be considered? Are there any plans to do that already?https://gitlab.redox-os.org/redox-os/liner/-/issues/13Rendering optimization2020-07-21T18:51:14ZAaron JanseRendering optimizationCurrently, `liner` (the readline library used by ion) rewrites the entire line when a character is typed. At least on my machine, this makes using ion in qemu very painful and slow.
I'd like to change this. I have experience with termin...Currently, `liner` (the readline library used by ion) rewrites the entire line when a character is typed. At least on my machine, this makes using ion in qemu very painful and slow.
I'd like to change this. I have experience with terminal rendering from building [3mux](https://github.com/aaronjanse/3mux).
To do this, I think we'd maintain state of the current terminal line. We'd need some sort of struct keeping track of colors and attributes (e.g. bold, dim).
I think the biggest difficulty would be the way that highlighting is done. Currently, the highlighter returns a string with ecma48 syntax (e.g. `Hello \e[91mdodo\e[m world`). Parsing ecma48 is a lot of work. Possible solutions:
- Have syntax highlighters directly modify a copy of the line state. For example, we could have a helper function to bold characters from index X to Y in the line (best option imo)
- Write some easier-to-parse-than-ecma48 syntax, possibly borrowing prompt code from `ion` (okay-ish option imo)
- ~~Just build an ecma48 parser (worst option imo)~~ Use https://gitlab.redox-os.org/redox-os/ransid for parsing ecma48
I understand this would break `redox_liner` API compatibility. But as far as I can tell, only `ion` depends on `redox_liner`. Because `ion` doesn't currently do syntax highlighting, we could change the syntax highlighting API here without breaking `ion`.
Cheers!https://gitlab.redox-os.org/redox-os/liner/-/issues/11Crates.io?2019-11-01T20:11:50ZPatrick CavanaughCrates.io?I found this while trying to find a path to fix the incoming borrow checker issues with the last version of liner on crates.io
Is the only supported way to install this
`liner = { git = "https://gitlab.redox-os.org/redox-os/liner.git#...I found this while trying to find a path to fix the incoming borrow checker issues with the last version of liner on crates.io
Is the only supported way to install this
`liner = { git = "https://gitlab.redox-os.org/redox-os/liner.git#3f3d1d4e6058067e9d03a9b1510d8f2edac073c7"}
`
right now? Will this fork be added to the registry to replace the unmaintained version? currently even the README in this repo still has a badge linking to https://crates.io/crates/linerhttps://gitlab.redox-os.org/redox-os/liner/-/issues/6Backslash at end of comment gobbles next line2019-12-25T21:34:49ZAdminXVIIBackslash at end of comment gobbles next line```
echo auie # auieie\
auieauieie
```
outputs `auie`.```
echo auie # auieie\
auieauieie
```
outputs `auie`.https://gitlab.redox-os.org/redox-os/liner/-/issues/5access previous argument2019-12-24T18:47:20ZGhost Useraccess previous argumentonly the last word of the previous argument is accessible: `echo 'hello world'` -> `alt+.` -> `world'`only the last word of the previous argument is accessible: `echo 'hello world'` -> `alt+.` -> `world'`https://gitlab.redox-os.org/redox-os/liner/-/issues/4kill fragments2018-06-21T22:57:27ZGhost Userkill fragmentsIf I type out `/some/long/path`, I would like `^W` to erase the last segment, not the entire path.If I type out `/some/long/path`, I would like `^W` to erase the last segment, not the entire path.https://gitlab.redox-os.org/redox-os/liner/-/issues/3This ⸻ unicode ⸻ character ⸻ makes ⸻ weird ⸻ things ⸻ happen2018-06-14T16:56:21ZMichael Aaron Murphymmstick@pm.meThis ⸻ unicode ⸻ character ⸻ makes ⸻ weird ⸻ things ⸻ happen*Created by: z3ntu*
I copied the title from https://github.com/fish-shell/fish-shell/issues/2652 as it also applies here.
**Reproduction**: Enter/paste the long dash character in the shell
**Expected behavior**: The cursor should "alig...*Created by: z3ntu*
I copied the title from https://github.com/fish-shell/fish-shell/issues/2652 as it also applies here.
**Reproduction**: Enter/paste the long dash character in the shell
**Expected behavior**: The cursor should "align" with the end of the character
**Actual behavior**: It doesn't
**Build information**: Arch Linux
**Misc**: Using the Konsole terminal emulator on KDE Plasma.
But props for handling Emoji **mostly** correctly. There are still some issues though if you play a bit with them 😉