aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/prompt-toolkit/py2/prompt_toolkit/enums.py
blob: 6945f44c960ddc23d38ea564217cd6414a51cb4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from __future__ import unicode_literals


class IncrementalSearchDirection(object):
    FORWARD = 'FORWARD'
    BACKWARD = 'BACKWARD'


class EditingMode(object):
    # The set of key bindings that is active.
    VI = 'VI'
    EMACS = 'EMACS'


#: Name of the search buffer.
SEARCH_BUFFER = 'SEARCH_BUFFER'

#: Name of the default buffer.
DEFAULT_BUFFER = 'DEFAULT_BUFFER'

#: Name of the system buffer.
SYSTEM_BUFFER = 'SYSTEM_BUFFER'

# Dummy buffer. This is the buffer returned by
# `CommandLineInterface.current_buffer` when the top of the `FocusStack` is
# `None`. This could be the case when there is some widget has the focus and no
# actual text editing is possible. This buffer should also never be displayed.
# (It will never contain any actual text.)
DUMMY_BUFFER = 'DUMMY_BUFFER'