sammyette
b311f24b3f
refactor: move hint insert to function
2024-12-22 12:07:26 -04:00
sammyette
a59394ec2b
feat: make right arrow insert hint text if any is available
2024-09-16 13:08:49 -04:00
sammyette
3d727e6411
fix: check for altHistory in sequence handling
...
fixes a panic
2024-04-16 10:34:24 -04:00
TorchedSammy
8d40179a73
fix(readline): dont do anything if length of input rune slice is 0
...
this fixes an issue when readline splits multiline input.
sometimes, the multiple lines just end up being "stray?"
inputs of enter plus a newline. this can happen if a user attempts
to prefire the enter key while a command is running, for example
2022-12-10 17:27:42 -04:00
sammyette
4ee160fb66
fix: provide correct command when navigating history ( #214 )
...
fixes an issue of going up and down in history results in the incorrect order of commands being inserted (nothing happens to the order in the history itself, just when navigating via arrow keys)
* fix: provide correct command when navigating history
previously, the order while navigating history
with the arrow keys would be incorrect
meaning the command you expect if you go u
then go back down would not be there
* chore: update changelog
2022-12-09 21:45:52 -04:00
TorchedSammy
bd4e0df7b3
feat: select 1st item on history find menu ( closes #148 )
...
cancels on escape unless the user moves to another item
2022-11-25 20:14:29 -04:00
TorchedSammy
d6338fc021
fix(readline): make completion search menu display
2022-11-25 19:08:38 -04:00
TorchedSammy
dd9bdca5e0
fix(readline): only call raw input callback if not nil
2022-07-13 15:35:33 -04:00
TorchedSammy
08e2951513
feat: add raw input hook ( closes #180 )
2022-07-10 20:34:00 -04:00
TorchedSammy
7e57b3de7d
fix: check if input is 0 on multiline splitting ( closes #170 )
2022-06-20 15:35:25 -04:00
TorchedSammy
b83c09a2b3
fix(readline): check stdin error properly
2022-04-19 10:30:04 -04:00
TorchedSammy
48cb62282d
fix(readline): input getting cut off on enter
2022-04-18 22:36:54 -04:00
TorchedSammy
1e48a3e03d
fix(readline): home and end buttons not putting the cursor in the right place
2022-04-18 16:04:56 -04:00
Renzix
7f161e6683
feat: added forward/backward word keybinds ( #139 )
...
Added emacsForwardWord and emacsBackwardWord which is used by M-f and
M-b directly. Also added M-d to ctrl delete and removed the bad old
funcion in favor of the fancy new one. Lastly I added alt delete which
deletes with emacsBackwardWord. Works identically to gnu readline
Co-authored-by: Renzix <DanielDeBruno@renzix.com>
2022-04-14 07:42:46 -04:00
TorchedSammy
194e4e01b7
fix: don't insert any unhandled control keys
2022-04-13 19:36:18 -04:00
TorchedSammy
e5c9b85008
feat: add ctrl _ to undo
2022-04-13 16:58:36 -04:00
sammyette
0a2046e985
feat: add right prompt ( #140 )
...
* feat: add right prompt (closes #111 )
* chore: add comment for set right prompt function
* fix: add 1 space at the end of right prompt to fix character cut off
* docs: update doc for prompt function
2022-04-13 10:13:46 -04:00
sammyette
ce625aca0c
feat: add ctrl delete to forward delete word ( #138 )
...
* feat: add ctrl delete to forward delete word (closes #124 )
* fix: make delete word function accurately
* fix: make ctrl delete work on st
2022-04-12 23:08:44 -04:00
TorchedSammy
1715a1f626
feat: make ctrl d delete char below cursor if line isnt empty
2022-04-12 21:02:01 -04:00
TorchedSammy
c342f4f6f5
fix: handle when stdin is in nonblocking mode ( closes #136 )
2022-04-08 10:46:25 -04:00
Renzix
0ebd8d9035
feat: added alt backspace keybinding ( #132 )
...
Co-authored-by: Renzix <DanielDeBruno@renzix.com>
2022-03-29 22:15:23 -04:00
Renzix
52caedc1f1
feat: delete key on st and fix: delete key crash on xterm ( #131 )
...
* fix: delete key on st
* fix: delete key crash on xterm
Co-authored-by: Renzix <DanielDeBruno@renzix.com>
2022-03-29 20:35:51 -04:00
Renzix
61c9e12a4a
feat: control k to delete the rest of the line ( #128 )
...
Co-authored-by: Renzix <DanielDeBruno@renzix.com>
2022-03-26 23:43:30 -04:00
TorchedSammy
6ea25a22b3
feat: add inline hint text and change what were hints previously to info ( closes #126 )
2022-03-26 17:34:09 -04:00
TorchedSammy
577f00dfef
fix(readline): make forward delete work properly
2022-03-23 21:11:24 -04:00
TorchedSammy
722bd1cd80
fix(readline): insert text in replace mode if cursor is at end of text
2022-03-23 21:10:04 -04:00
TorchedSammy
f27d60f827
fix: move cursor to end of line on history search ( closes #121 )
2022-03-21 06:47:14 -04:00
TorchedSammy
0ee47cc6f0
fix(readline): clear history filter on Readline, fixes filtering after ctrl-c
2022-03-15 16:27:12 -04:00
TorchedSammy
91222f9d74
fix(readline): dont reduce pos if its at 0
2022-03-13 20:00:11 -04:00
TorchedSammy
0113a4e0b4
fix(readline): make esc escape any vim mode
2022-03-13 14:26:44 -04:00
TorchedSammy
5a2e3e4700
chore: bring readline in repo for easier maintenance
2022-03-13 13:48:49 -04:00