| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cfe07ec commit 7a85371
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | from ConfigParser import ConfigParser | |
| 5 | 5 | from itertools import chain | |
| 6 | 6 | from bpython.keys import cli_key_dispatch as key_dispatch | |
| 7 | - from bpython.autocomplete import SUBSTRING | ||
| 7 | + from bpython.autocomplete import SIMPLE as default_completion | ||
| 8 | 8 | ||
| 9 | 9 | MAGIC_METHODS = ", ".join("__%s__" % s for s in [ | |
| 10 | 10 | "init", "repr", "str", "lt", "le", "eq", "ne", "gt", "ge", "cmp", "hash", | |
@@ -56,7 +56,7 @@ def loadini(struct, configfile): | |||
| 56 | 56 | 'color_scheme': 'default', | |
| 57 | 57 | 'complete_magic_methods' : True, | |
| 58 | 58 | 'magic_methods' : MAGIC_METHODS, | |
| 59 | - 'autocomplete_mode': SUBSTRING, | ||
| 59 | + 'autocomplete_mode': default_completion, | ||
| 60 | 60 | 'dedent_after': 1, | |
| 61 | 61 | 'flush_output': True, | |
| 62 | 62 | 'highlight_show_source': True, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,9 @@ autocomplete_mode | |||
| 25 | 25 | There are three modes for autocomplete. simple, substring, and fuzzy. | |
| 26 | 26 | Simple matches methods with a common prefix, substring matches methods with a common | |
| 27 | 27 | subsequence, and fuzzy matches methods with common characters (default: | |
| 28 | - substring). | ||
| 28 | + simple). | ||
| 29 | + | ||
| 30 | + .. versionadded:: 0.12 | ||
| 29 | 31 | ||
| 30 | 32 | syntax | |
| 31 | 33 | ^^^^^^ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments