Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
3cd07728
Unverified
Commit
3cd07728
authored
Nov 21, 2023
by
Kevin Cao
Committed by
GitHub
Nov 21, 2023
Browse files
Make alt+backspace delete word (#1223)
parent
ecf8b793
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
readline/readline.go
readline/readline.go
+2
-0
No files found.
readline/readline.go
View file @
3cd07728
...
@@ -145,6 +145,8 @@ func (i *Instance) Readline() (string, error) {
...
@@ -145,6 +145,8 @@ func (i *Instance) Readline() (string, error) {
buf
.
MoveLeftWord
()
buf
.
MoveLeftWord
()
case
'f'
:
case
'f'
:
buf
.
MoveRightWord
()
buf
.
MoveRightWord
()
case
CharBackspace
:
buf
.
DeleteWord
()
case
CharEscapeEx
:
case
CharEscapeEx
:
escex
=
true
escex
=
true
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment