Skip to content

Fix 506 #525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e3dfb4f
Add Ctrl-e to complete current suggestion.
amjith Mar 13, 2015
577b9c7
use configurable keys for right arrow completion
thomasballinger Mar 13, 2015
d2287ad
Merge branch 'ctrl-e'
thomasballinger Mar 13, 2015
e83fb4a
Change default to None and set it to LOCK_EX in __init__ (fixes #509)
sebastinas Mar 15, 2015
4d26621
Move attr_{matches,lookup} to AttrCompleter
sebastinas Mar 15, 2015
5cf6f52
Makes old style classes and instances show __dict__ in the autocomplete.
Mar 15, 2015
cb90872
Adds tests to validate that __dict__ is in the autocomplete of an old
Mar 15, 2015
a82b4b5
Makes the old-style class autocomplete work in 2.6 and 3.x
Mar 15, 2015
2cfa83b
Re-introduce autocompletion modes
sebastinas Mar 16, 2015
c830c75
Update tests
sebastinas Mar 16, 2015
27b9493
Fix fuzzy completion test
sebastinas Mar 16, 2015
ad8958f
Merge remote-tracking branch 'llllllllll/old-style-class-dict-autocom…
sebastinas Mar 16, 2015
ac630cc
Move pasting logic out of Repl
sebastinas Mar 23, 2015
5cdfa51
Update translations
sebastinas Mar 23, 2015
21b9a54
Use bpython.config's getpreferredencoding
sebastinas Mar 24, 2015
38f1ed6
Remember the source of interactively defined functions
michaelmulley Mar 25, 2015
7ca380d
Move linecache code to new file, use super()
michaelmulley Mar 25, 2015
92e9b0b
No need to catch this AttributeError in test code
michaelmulley Mar 25, 2015
80765a8
Fix bpdb name
sebastinas Apr 20, 2015
bb1389a
Add Keywords
sebastinas Apr 20, 2015
a33048d
fixed bug #506
thekthuser Apr 26, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use configurable keys for right arrow completion
  • Loading branch information
thomasballinger committed Mar 13, 2015
commit 577b9c731d0ac559635fc2445a2ab3120b19d242
9 changes: 6 additions & 3 deletions bpython/curtsiesfrontend/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,12 @@ def process_key_event(self, e):
if self.stdin.has_focus:
return self.stdin.process_event(e)

if (e in ("<RIGHT>", '<Ctrl-f>', '<Ctrl-e>') and
self.config.curtsies_right_arrow_completion and
self.cursor_offset == len(self.current_line)):
if (e in (key_dispatch[self.config.right_key] +
key_dispatch[self.config.end_of_line_key] +
("<RIGHT>",))
and self.config.curtsies_right_arrow_completion
and self.cursor_offset == len(self.current_line)):

self.current_line += self.current_suggestion
self.cursor_offset = len(self.current_line)
elif e in ("<UP>",) + key_dispatch[self.config.up_one_line_key]:
Expand Down