Skip to content

Commit 6248522

Browse files
committed
Document key bindings
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 4451c65 commit 6248522

File tree

1 file changed

+142
-64
lines changed

1 file changed

+142
-64
lines changed

doc/sphinx/source/configuration-options.rst

Lines changed: 142 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -198,106 +198,89 @@ Valid keys are:
198198
* Control + any alphanumeric character (C-a through A-z, also a few others).
199199
* Any function key ranging from F1 to F12.
200200

201-
pastebin
202-
^^^^^^^^
203-
Default: F8
204-
205-
last_output
206-
^^^^^^^^^^^
207-
Default: F9
208-
209-
Shows the last output in the systems $PAGER.
210-
211-
reimport
212-
^^^^^^^^
213-
Default: F6
214-
215-
Reruns entire session, reloading all modules by clearing the sys.modules cache.
216-
217-
.. versionadded:: 0.14
218-
219-
help
220-
^^^^
221-
Default: F1
201+
backspace
202+
^^^^^^^^^
203+
Default: C-h
222204

223-
Brings up sincerely cheerful description of bpython features and current key bindings.
205+
Delete character in front of the cursor.
224206

225207
.. versionadded:: 0.14
226208

227-
toggle_file_watch
209+
beginning_of_line
228210
^^^^^^^^^^^^^^^^^
229-
Default: F5
211+
Default: C-a
230212

231-
Toggles file watching behaviour; re-runs entire bpython session whenever an imported
232-
module is modified.
213+
Move to the beginning of the line.
233214

234215
.. versionadded:: 0.14
235216

236-
save
237-
^^^^
238-
Default: C-s
217+
clear_line
218+
^^^^^^^^^^
219+
Default: C-u
239220

240-
Saves the current session to a file (prompts for filename)
221+
Clears to the beginning of the line.
241222

242-
undo
243-
^^^^
244-
Default: C-r
223+
clear_screen
224+
^^^^^^^^^^^^
225+
Default: C-l
245226

246-
Rewinds the last action.
227+
Clears the screen to the top.
247228

248-
up_one_line
249-
^^^^^^^^^^^
250-
Default: C-p
229+
clear_word
230+
^^^^^^^^^^
231+
Default: C-w
251232

252-
Move the cursor up, by one line.
233+
Clear the word the cursor is currently on.
253234

254-
down_one_line
255-
^^^^^^^^^^^^^
256-
Default: C-n
235+
copy_clipboard
236+
^^^^^^^^^^^^^^
237+
Default: F10
257238

258-
Move the cursor down, by one line.
239+
Copy to clipboard.
240+
241+
.. versionadded:: 0.14
259242

260243
cut_to_buffer
261244
^^^^^^^^^^^^^
262245
Default: C-k
263246

264247
Cuts the current line to the buffer.
265248

266-
search
249+
delete
267250
^^^^^^
268-
Default: C-o
251+
Default: C-d
269252

270-
Search up for any lines containing what is on the current line.
253+
Delete character under the cursor.
271254

272-
yank_from_buffer
273-
^^^^^^^^^^^^^^^^
274-
Default: C-y
255+
down_one_line
256+
^^^^^^^^^^^^^
257+
Default: C-n
275258

276-
Pastes the current line from the buffer (the one you previously cutted)
259+
Move the cursor down, by one line.
277260

278-
clear_word
279-
^^^^^^^^^^
280-
Default: C-w
261+
edit_config
262+
^^^^^^^^^^^
263+
Default: F3
281264

282-
Clear the word the cursor is currently on.
265+
Edit bpython configuration in external editor.
283266

284-
clear_line
285-
^^^^^^^^^^
286-
Default: C-u
267+
.. versionadded:: 0.14
287268

288-
Clears to the beginning of the line.
269+
edit_current_block
270+
^^^^^^^^^^^^^^^^^^
271+
Default: C-x
289272

290-
clear_screen
291-
^^^^^^^^^^^^
292-
Default: C-l
273+
Edit current block in external editor.
293274

294-
Clears the screen to the top.
275+
.. versionadded:: 0.14
295276

296-
show_source
277+
end_of_line
297278
^^^^^^^^^^^
298-
Default: F2
279+
Default: C-e
299280

300-
Shows the source of the currently being completed (python) function.
281+
Move to the of the line.
282+
283+
.. versionadded:: 0.14
301284

302285
exit
303286
^^^^
@@ -313,6 +296,101 @@ Edit current line in an external editor.
313296

314297
.. versionadded:: 0.13
315298

299+
help
300+
^^^^
301+
Default: F1
302+
303+
Brings up sincerely cheerful description of bpython features and current key bindings.
304+
305+
.. versionadded:: 0.14
306+
307+
last_output
308+
^^^^^^^^^^^
309+
Default: F9
310+
311+
Shows the last output in the systems $PAGER.
312+
313+
left
314+
^^^^
315+
Default: C-b
316+
317+
Move a character to the left.
318+
319+
.. versionadded:: 0.14
320+
321+
pastebin
322+
^^^^^^^^
323+
Default: F8
324+
325+
reimport
326+
^^^^^^^^
327+
Default: F6
328+
329+
Reruns entire session, reloading all modules by clearing the sys.modules cache.
330+
331+
.. versionadded:: 0.14
332+
333+
right
334+
^^^^^
335+
Default: C-f
336+
337+
Move a character to the right.
338+
339+
.. versionadded:: 0.14
340+
341+
save
342+
^^^^
343+
Default: C-s
344+
345+
Saves the current session to a file (prompts for filename)
346+
347+
search
348+
^^^^^^
349+
Default: C-o
350+
351+
Search up for any lines containing what is on the current line.
352+
353+
show_source
354+
^^^^^^^^^^^
355+
Default: F2
356+
357+
Shows the source of the currently being completed (python) function.
358+
359+
toggle_file_watch
360+
^^^^^^^^^^^^^^^^^
361+
Default: F5
362+
363+
Toggles file watching behaviour; re-runs entire bpython session whenever an imported
364+
module is modified.
365+
366+
.. versionadded:: 0.14
367+
368+
transpose_chars
369+
^^^^^^^^^^^^^^^
370+
Default: C-t
371+
372+
Transpose current character with the one left of it.
373+
374+
.. versionadded:: 0.14
375+
376+
undo
377+
^^^^
378+
Default: C-r
379+
380+
Rewinds the last action.
381+
382+
up_one_line
383+
^^^^^^^^^^^
384+
Default: C-p
385+
386+
Move the cursor up, by one line.
387+
388+
yank_from_buffer
389+
^^^^^^^^^^^^^^^^
390+
Default: C-y
391+
392+
Pastes the current line from the buffer (the one you previously cutted)
393+
316394
CLI
317395
---
318396
This refers to the ``[cli]`` section in your config file.

0 commit comments

Comments
 (0)