Skip to content

Commit 34a4987

Browse files
springcompMaxime LABELLEsdwheeler
authored
PSRL: Changed method names for consistency and introduced backwards compatible methods (#7146)
* Documented new BackwardDeleteInput and changes to BackwardDeleteLine. * Introduced BackwardKillInput that replicates BackwardKillLine before update. * Introduced ForwardDeleteInput that replicates ForwardDeleteLine before update. Co-authored-by: Maxime LABELLE <[email protected]> Co-authored-by: Sean Wheeler <[email protected]>
1 parent 581a1ec commit 34a4987

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

reference/7.2/PSReadLine/About/about_PSReadLine.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,28 +133,42 @@ Delete the character before the cursor.
133133
- Vi insert mode: `<Backspace>`
134134
- Vi command mode: `<X>`, `<d,h>`
135135

136-
### BackwardDeleteLine
136+
### BackwardDeleteInput
137137

138-
Like BackwardKillLine - deletes text from the point to the start of the line,
138+
Like BackwardKillInput - deletes text from the point to the start of the input,
139139
but does not put the deleted text in the kill-ring.
140140

141141
- Cmd: `<Ctrl+Home>`
142142
- Vi insert mode: `<Ctrl+u>`, `<Ctrl+Home>`
143-
- Vi command mode: `<Ctrl+u>`, `<Ctrl+Home>`, `<d,0>`
143+
- Vi command mode: `<Ctrl+u>`, `<Ctrl+Home>`
144+
145+
### BackwardDeleteLine
146+
147+
Like BackwardKillLine - deletes text from the point to the start of the line,
148+
but does not put the deleted text in the kill-ring.
149+
150+
- Vi command mode: `<d,0>`
144151

145152
### BackwardDeleteWord
146153

147154
Deletes the previous word.
148155

149156
- Vi command mode: `<Ctrl+w>`, `<d,b>`
150157

151-
### BackwardKillLine
158+
### BackwardKillInput
152159

153-
Clear the input from the start of the input to the cursor. The cleared text is
160+
Clear the text from the start of the input to the cursor. The cleared text is
154161
placed in the kill-ring.
155162

156163
- Emacs: `<Ctrl+u>`, `<Ctrl+x,Backspace>`
157164

165+
### BackwardKillLine
166+
167+
Clear the text from the start of the current logical line to the cursor. The cleared text is
168+
placed in the kill-ring.
169+
170+
- Function is unbound.
171+
158172
### BackwardKillWord
159173

160174
Clear the input from the start of the current word to the cursor. If the
@@ -271,15 +285,22 @@ Delete the next word.
271285

272286
- Vi command mode: `<d,w>`
273287

274-
### ForwardDeleteLine
288+
### ForwardDeleteInput
275289

276-
Like ForwardKillLine - deletes text from the point to the end of the line, but
290+
Like KillLine - deletes text from the point to the end of the input, but
277291
does not put the deleted text in the kill-ring.
278292

279293
- Cmd: `<Ctrl+End>`
280294
- Vi insert mode: `<Ctrl+End>`
281295
- Vi command mode: `<Ctrl+End>`
282296

297+
### ForwardDeleteLine
298+
299+
Deletes text from the point to the end of the current logical line, but
300+
does not put the deleted text in the kill-ring.
301+
302+
- Function is unbound
303+
283304
### InsertLineAbove
284305

285306
A new empty line is created above the current line regardless of where the

0 commit comments

Comments
 (0)