Files

130 lines
5.7 KiB
Go

// Fenrir console screen reader.
// Copyright (c) 2026 Storm Dragon
// SPDX-License-Identifier: GPL-3.0-or-later
//
// This program is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation, either version 3 of the License, or (at your option)
// any later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License along with
// this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.html>.
// Package command defines reader actions independently of their input bindings.
package command
// ID is a stable action name for input bindings and command dispatch.
type ID string
const (
Time ID = "time"
Date ID = "date"
LastNotification ID = "last_notification"
NotificationHistory ID = "notification_history"
PreviousLine ID = "previous_line"
CurrentLine ID = "current_line"
NextLine ID = "next_line"
PreviousWord ID = "previous_word"
CurrentWord ID = "current_word"
NextWord ID = "next_word"
PreviousChar ID = "previous_character"
CurrentChar ID = "current_character"
SpellWord ID = "spell_word"
PhoneticWord ID = "phonetic_word"
SpellLine ID = "spell_line"
PhoneticLine ID = "phonetic_line"
PhoneticChar ID = "phonetic_character"
NextChar ID = "next_character"
ReviewUp ID = "review_up"
ReviewDown ID = "review_down"
Top ID = "top"
Bottom ID = "bottom"
LineStart ID = "line_start"
LineEnd ID = "line_end"
FirstText ID = "first_text"
LastText ID = "last_text"
ReadScreen ID = "read_screen"
ScreenBeforeCursor ID = "curr_screen_before_cursor"
ScreenAfterCursor ID = "curr_screen_after_cursor"
ToggleAttributes ID = "toggle_has_attribute"
AttributeCursor ID = "attribute_cursor"
Position ID = "position"
CursorLine ID = "cursor_lineno"
CursorColumn ID = "cursor_column"
LineToCursor ID = "cursor_read_line_to_cursor"
LineFromCursor ID = "cursor_read_to_end_of_line"
ScreenFirstChar ID = "review_screen_first_char"
ScreenLastChar ID = "review_screen_last_char"
FollowCursor ID = "follow_cursor"
Help ID = "help"
Version ID = "announce_fenrir_version"
EmojiMenu ID = "emoji_menu"
SpellcheckMenu ID = "spellcheck_menu"
FenrirMenu ID = "fenrir_menu"
ApplicationsMenu ID = "applications_menu"
NextQuickCategory ID = "next_quick_menu_category"
PreviousQuickCategory ID = "prev_quick_menu_category"
CurrentQuickEntry ID = "current_quick_menu_entry"
CurrentQuickValue ID = "current_quick_menu_value"
NextQuickEntry ID = "next_quick_menu_entry"
PreviousQuickEntry ID = "prev_quick_menu_entry"
NextQuickValue ID = "next_quick_menu_value"
PreviousQuickValue ID = "prev_quick_menu_value"
SaveSettings ID = "save_settings"
Mute ID = "mute"
TempDisableSpeech ID = "temp_disable_speech"
ProgressMonitor ID = "progress_bar_monitor"
AutoRead ID = "auto_read"
ToggleTracking ID = "toggle_highlight_tracking"
PassNext ID = "pass_next"
Quit ID = "quit"
Unbound ID = "unbound"
SetWindow ID = "set_window_application"
ClearWindow ID = "clear_window_application"
SetLiveRegion ID = "set_live_region"
ListReadingRegions ID = "list_reading_regions"
ClearLiveRegions ID = "clear_live_regions"
ClearReadingRegions ID = "clear_reading_regions"
ReadLiveRegion1 ID = "read_live_region_1"
ClearLiveRegion1 ID = "clear_live_region_1"
ReadLiveRegion2 ID = "read_live_region_2"
ClearLiveRegion2 ID = "clear_live_region_2"
ReadLiveRegion3 ID = "read_live_region_3"
ClearLiveRegion3 ID = "clear_live_region_3"
ReadLiveRegion4 ID = "read_live_region_4"
ClearLiveRegion4 ID = "clear_live_region_4"
ReadLiveRegion5 ID = "read_live_region_5"
ClearLiveRegion5 ID = "clear_live_region_5"
ReadLiveRegion6 ID = "read_live_region_6"
ClearLiveRegion6 ID = "clear_live_region_6"
ReadLiveRegion7 ID = "read_live_region_7"
ClearLiveRegion7 ID = "clear_live_region_7"
ReadLiveRegion8 ID = "read_live_region_8"
ClearLiveRegion8 ID = "clear_live_region_8"
ReadLiveRegion9 ID = "read_live_region_9"
ClearLiveRegion9 ID = "clear_live_region_9"
ReadLiveRegion10 ID = "read_live_region_10"
ClearLiveRegion10 ID = "clear_live_region_10"
SetMark ID = "set_mark"
RemoveMarks ID = "remove_marks"
MarkedText ID = "marked_text"
CopyMarked ID = "copy_marked_to_clipboard"
CopyLastEcho ID = "copy_last_echo_to_clipboard"
CurrentClipboard ID = "curr_clipboard"
PreviousClipboard ID = "prev_clipboard"
NextClipboard ID = "next_clipboard"
FirstClipboard ID = "first_clipboard"
LastClipboard ID = "last_clipboard"
ClearClipboard ID = "clear_clipboard"
PasteClipboard ID = "paste_clipboard"
ImportClipboard ID = "import_clipboard_from_file"
ExportClipboard ID = "export_clipboard_to_file"
ImportXClipboard ID = "import_clipboard_from_x"
ExportXClipboard ID = "export_clipboard_to_x"
)