MCPcopy Create free account

hub / github.com/CharlieHess/electron-text-substitutions / functions

Functions34 in github.com/CharlieHess/electron-text-substitutions

↓ 12 callersFunctionperformTextSubstitution
(element, preferenceOverrides = null)
src/index.js:39
↓ 11 callersFunctiongetSubstitutionRegExp
(match, replacement)
src/regular-expressions.js:33
↓ 10 callersFunctioninputText
(inputElement, text)
test/index.js:7
↓ 6 callersFunctionassertRegExReplacements
(replacementItems, testCases)
test/regular-expressions.js:128
↓ 4 callersFunctionreadSystemTextPreferences
()
src/preference-helpers.js:27
↓ 3 callersFunctiongetReplacementItems
* Creates a regular expression for each text substitution entry, in addition * to expressions for smart quotes and dashes (if they're enabled). *
src/index.js:153
↓ 3 callersFunctiongetSmartDashesRegExp
()
src/regular-expressions.js:83
↓ 3 callersFunctiontypeText
(inputElement, text)
test/index.js:13
↓ 2 callersFunctionaddInputListener
* Subscribes to the `input` event and performs text substitution. * * @param {EventTarget} element The DOM node to listen to
src/index.js:200
↓ 2 callersFunctiongetElementText
* Get the string value of Text, Elements, and form elements * * @param {Element} element The element whose text will be retrieved * @return {Stri
src/index.js:186
↓ 2 callersFunctiongetSmartQuotesRegExp
()
src/regular-expressions.js:67
↓ 1 callersFunctioncontainsRemoteObject
(obj)
test/contains-remote-object.js:13
↓ 1 callersFunctionformatReplacement
(match, replacement)
src/regular-expressions.js:107
↓ 1 callersFunctioninputListener
()
src/index.js:204
↓ 1 callersFunctionisBackspaceEvent
({keyCode})
src/keyboard-utils.js:35
↓ 1 callersFunctionisUndoRedoEvent
({keyCode, metaKey, ctrlKey, shiftKey, altKey})
src/keyboard-utils.js:19
↓ 1 callersFunctionlastIndexOfWhitespace
(value, fromIndex)
src/index.js:294
↓ 1 callersFunctionobservableForPreferenceChanged
* Create an Observable that will emit when the given macOS system * notification fires. * * @param {String} preferenceChangedKey The key to liste
src/preference-helpers.js:70
↓ 1 callersFunctiononPreferenceChanged
(callback)
src/preference-helpers.js:53
↓ 1 callersFunctionreplaceText
* Performs the actual text replacement using `dispatchEvent`. We use events to * preserve the user's cursor index and make the substitution undoable.
src/index.js:314
↓ 1 callersFunctionscrubInputString
(input, items)
src/regular-expressions.js:98
↓ 1 callersFunctionsetSelectionRange
* Sets the selection range of a given input element. If the element is not an * `input` or `textarea`, we need to get into the `Range` game. * * @p
src/index.js:329
FunctioncompositionEndListener
()
src/index.js:260
FunctioncompositionStartListener
()
src/index.js:259
FunctionkeyDownListener
(e)
src/index.js:242
FunctionkeyUpListener
()
src/index.js:253
FunctionlistenForPreferenceChanges
()
src/index.js:93
FunctionnotifyAllListeners
* Sends an IPC message to each `WebContents` that is doing text substitution, * unless it has been destroyed, in which case remove it from our list.
src/index.js:122
FunctionpasteListener
()
src/index.js:249
FunctionpreferenceChangedListener
(serializedItems)
src/index.js:68
FunctionreadSystemTextPreferencesJSON
()
src/preference-helpers.js:43
FunctionregExpReplacer
(key, value)
src/regular-expressions.js:116
FunctionregExpReviver
(key, value)
src/regular-expressions.js:125
FunctionunloadListener
()
src/index.js:53