From 638e57eab16a2415c9632e7c27e785bd7e9fbee3 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 7 Nov 2017 09:18:31 +0100 Subject: [PATCH 1/2] Update headLineManager.py --- src/fenrir/core/headLineManager.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/fenrir/core/headLineManager.py b/src/fenrir/core/headLineManager.py index 7df9e31c..d04dc68d 100644 --- a/src/fenrir/core/headLineManager.py +++ b/src/fenrir/core/headLineManager.py @@ -5,7 +5,7 @@ # By Chrys, Storm Dragon, and contributers. from core import debug -import re +import re, string class headLineManager(): def __init__(self): @@ -16,6 +16,12 @@ class headLineManager(): def shutdown(self): pass def replaceHeadLines(self, text): + # fast len check for bigger typing echo + if len(text) < 5: + return text + # more strong check, to not match if not needed: + if len(text.strip(string.ascii_letters+string.digits+string.whitespace)) < 5: + return text result = '' newText = '' lastPos = 0 From 7c1f2fafb899cb49fc6e80dc45b4b59793369c53 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 7 Nov 2017 16:50:45 +0100 Subject: [PATCH 2/2] Update TODO v2.0 --- TODO v2.0 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TODO v2.0 b/TODO v2.0 index 9bcfdbed..ae52f70a 100644 --- a/TODO v2.0 +++ b/TODO v2.0 @@ -20,6 +20,7 @@ Cleanups: [] settingsData -> defaultSettings.py General: +- make fenrir runable without settingsfile. fallback to defaults - imporove attribute handling [] improve attributes_curr_char (Easy for contribution) [] add an attribute sound (Easy for contribution) @@ -34,8 +35,6 @@ General: [] command to stop and place review cursor at this position [] command to slow down speech on keypress [] place say all at clipboard buffer -- make it runnable via pypy3 - [] wrapper script for running Fenrir to check if pypy exists, use python3 as fallback. - table review mode [] toggle table mode/ select headline [] next line @@ -45,6 +44,8 @@ General: [] prev cell [] current cell [] select field separator +- make it runnable via pypy3 (low priority) + [] wrapper script for running Fenrir to check if pypy exists, use python3 as fallback. Braille Support: [] brailleFocusMode: