Skip to content

Commit 61d7ba8

Browse files
improve help message, fix spelling
1 parent 3a86eae commit 61d7ba8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bpython/curtsiesfrontend/events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Non-keybaord events used in bpython curtsies REPL"""
1+
"""Non-keyboard events used in bpython curtsies REPL"""
22
import time
33

44
import curtsies.events
@@ -25,7 +25,7 @@ def __repr__(self):
2525
class ScheduledRefreshRequestEvent(curtsies.events.ScheduledEvent):
2626
"""Request to refresh the REPL display at some point in the future
2727
28-
Used to schedule the dissapearance of status bar message that only show
28+
Used to schedule the disappearance of status bar message that only shows
2929
for a few seconds"""
3030
def __init__(self, when, who='?'):
3131
self.who = who

bpython/curtsiesfrontend/repl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
Use a config file at {config_file_location} to customize keys and behavior of bpython.
7474
You can customize which pastebin helper to use and which external editor to use.
7575
See {example_config_url} for an example config file.
76+
Press {config.edit_config_key} to edit this config file.
7677
"""
7778

7879
class FakeStdin(object):
@@ -1385,6 +1386,8 @@ def key_help_text(self):
13851386
pairs = []
13861387
pairs.append(['complete history suggestion', 'right arrow at end of line'])
13871388
pairs.append(['previous match with current line', 'up arrow'])
1389+
pairs.append(['reverse incremental search', 'M-r'])
1390+
pairs.append(['incremental search', 'M-s'])
13881391
for functionality, key in [(attr[:-4].replace('_', ' '), getattr(self.config, attr))
13891392
for attr in self.config.__dict__
13901393
if attr.endswith('key')]:

0 commit comments

Comments
 (0)