aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-04-16 10:29:11 -0400
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-04-16 10:29:11 -0400
commitdea80d78f9b1779fd29ba07e86b47643b27ff437 (patch)
tree34e31018d6d1d9e4315c352eb63635c339409a94 /modules
parentfaf8a95eea2a27ea1f776c9e61882bc27af9c735 (diff)
Added ability to specify find & replace pane entry font via `ui.find.entry_font`.
Also use type checks when setting find & replace text and labels.
Diffstat (limited to 'modules')
-rw-r--r--modules/lua/ta_api1
-rw-r--r--modules/lua/ta_tags1
-rw-r--r--modules/textadept/find.lua3
3 files changed, 5 insertions, 0 deletions
diff --git a/modules/lua/ta_api b/modules/lua/ta_api
index 63132b07..d1c83c0e 100644
--- a/modules/lua/ta_api
+++ b/modules/lua/ta_api
@@ -493,6 +493,7 @@ end_styled buffer.end_styled (number, Read-only)\nThe current styling position o
end_undo_action buffer.end_undo_action(buffer)\nEnds a sequence of actions to be undone or redone as a single action.\n@param buffer A buffer.
ensure_visible view.ensure_visible(view, line)\nEnsures line number *line* is visible by expanding any fold points hiding it.\n@param view A view.\n@param line The line number in *view* to ensure visible.
ensure_visible_enforce_policy view.ensure_visible_enforce_policy(view, line)\nEnsures line number *line* is visible by expanding any fold points hiding it based on the\nvertical caret policy previously defined in `view.set_visible_policy()`.\n@param view A view.\n@param line The line number in *view* to ensure visible.
+entry_font ui.find.entry_font (string, Write-only)\nThe font to use in the "Find" and "Replace" entries in "name size" format.\nThe default value is system-dependent.
eol_annotation_clear_all buffer.eol_annotation_clear_all(buffer)\nClears EOL annotations from all lines.\n@param buffer A buffer.
eol_annotation_style buffer.eol_annotation_style (table)\nTable of style numbers for EOL annotation text per line number.\nOnly some style attributes are active in annotations: font, size/size_fractional, bold/weight,\nitalics, fore, back, and character_set.
eol_annotation_text buffer.eol_annotation_text (table)\nTable of EOL annotation text per line number.
diff --git a/modules/lua/ta_tags b/modules/lua/ta_tags
index 0c5842bf..5471b09f 100644
--- a/modules/lua/ta_tags
+++ b/modules/lua/ta_tags
@@ -495,6 +495,7 @@ end_styled _HOME/core/.buffer.luadoc /^module('buffer')$/;" F class:buffer
end_undo_action _HOME/core/.buffer.luadoc /^function end_undo_action(buffer) end$/;" f class:buffer
ensure_visible _HOME/core/.view.luadoc /^function ensure_visible(view, line) end$/;" f class:view
ensure_visible_enforce_policy _HOME/core/.view.luadoc /^function ensure_visible_enforce_policy(view, line) end$/;" f class:view
+entry_font _HOME/modules/textadept/find.lua /^module('ui.find')]]$/;" F class:ui.find
eol_annotation_clear_all _HOME/core/.buffer.luadoc /^function eol_annotation_clear_all(buffer) end$/;" f class:buffer
eol_annotation_style _HOME/core/.buffer.luadoc /^module('buffer')$/;" F class:buffer
eol_annotation_text _HOME/core/.buffer.luadoc /^module('buffer')$/;" F class:buffer
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index df51048b..b8f70ca6 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -55,6 +55,9 @@ local M = ui.find
-- @field in_files_label_text (string, Write-only)
-- The text of the "In files" label.
-- This is primarily used for localization.
+-- @field entry_font (string, Write-only)
+-- The font to use in the "Find" and "Replace" entries in "name size" format.
+-- The default value is system-dependent.
-- @field active (boolean)
-- Whether or not the Find & Replace pane is active.
-- @field highlight_all_matches (boolean)