This commit is contained in:
Kovid Goyal
2018-02-14 11:19:58 +05:30
parent dff7ddea39
commit 62174fdbcc
3 changed files with 18 additions and 21 deletions

View File

@@ -14,12 +14,11 @@ from kitty.utils import read_with_timeout
from ..tui.handler import Handler
from ..tui.loop import Loop
from ..tui.operations import clear_screen, colored, set_window_title, styled
from ..tui.operations import clear_screen, faint, set_window_title, styled
Mark = namedtuple('Mark', 'index start end text')
URL_PREFIXES = 'http https file ftp'.split()
HINT_ALPHABET = string.digits + string.ascii_lowercase
FAINT = 242
@lru_cache(maxsize=2048)
@@ -39,9 +38,6 @@ def decode_hint(x):
def render(lines, current_input):
ans = []
def faint(text):
return colored(text, FAINT)
def mark(m):
hint = encode_hint(m.index)
text = m.text