diff --git a/wt-access/README.md b/wt-access/README.md index bd9ada0..0a627cc 100755 --- a/wt-access/README.md +++ b/wt-access/README.md @@ -41,11 +41,11 @@ My script - based on Freedom's code - fixes this problem by adding the UIA suppo - Prevent announcing unneccessary information (honour the keyboard echo setting) - Support the auto-completion feature - Support UIA only in Terminal (and let other events, E.G. volume changes to handle the default script) +- Turn on (temporarily) and off the indentation echo feature in Terminal with JAWSKEy+Shift+i command. Supported in text editors (Nano, Vim) and command outputs (E.G. `kubectl ... -o yaml` or `argocd ... -o yaml`). ## Known issues and todo - Try to detect prompt and turn it's announce off when navigating on the command history (up and down arrow). - Ability to temporarily disable UIA for a while to avoid too large amount of text, E.G. using mtr or top, where content changing randomly -- Ability to switch the indentation announce feature with a hotkey to make easier to use argocd, kubectl and edit yaml files easily - Saying bad characters when try to mark text in mark mode. Workaround is to mark only lines with CTRL+up-down arrow and press CTRL-SHIFT-c to copy. Do not mark single characters or partialy section of lines. \ No newline at end of file diff --git a/wt-access/WindowsTerminal.JKM b/wt-access/WindowsTerminal.JKM new file mode 100755 index 0000000..471eb54 --- /dev/null +++ b/wt-access/WindowsTerminal.JKM @@ -0,0 +1,2 @@ +[Common Keys] +Shift+JAWSKey+I=ToggleSayIndentation diff --git a/wt-access/WindowsTerminal.JSS b/wt-access/WindowsTerminal.JSS index f4dfdff..167c2ac 100755 --- a/wt-access/WindowsTerminal.JSS +++ b/wt-access/WindowsTerminal.JSS @@ -82,6 +82,19 @@ EndIf PerformScript BottomOfFile() EndScript +script ToggleSayIndentation() +var int status = GetJCFOption (OPT_INDICATE_INDENTATION) +if status == 0 +; turn it on +Say ("Indentation echo on", OT_JAWS_MESSAGE, false) +SetJCFOption (OPT_INDICATE_INDENTATION, 1) +else +; turn it off +Say ("Indentation echo off", OT_JAWS_MESSAGE, false) +SetJCFOption (OPT_INDICATE_INDENTATION, 0) +endif +EndScript + string function ProcessUiaText(string text) var stringArray lines = StringSplit (text, "\n", false) var int x = 0