Alex Plate
54653d1d1b
Specify ActionUpdateThread for ToggleHintsAction
2025-09-10 14:06:33 +03:00
Xinhe Wang
4e59af278b
Avoid generating hints for another unfocused window
2025-09-10 11:36:04 +03:00
Matt Ellis
d4df794d3c
Show message if no mapping found
2025-09-09 14:06:38 +03:00
Xinhe Wang
04273d005e
Skip the tree nodes when generating hints to improve performance
2025-09-09 12:53:26 +03:00
Xinhe Wang
463a9e7ceb
Generate hints for visible components whose parent is not visible
2025-09-09 12:53:26 +03:00
Xinhe Wang
aab1999782
Do not preserve previous hints if impossible
2025-09-09 12:53:26 +03:00
Xinhe Wang
733470f7b4
Allow repeated characters in hints
2025-09-09 12:53:26 +03:00
Matt Ellis
4c48b4cd42
Update comments and other PR feedback
2025-09-08 09:58:34 +03:00
Matt Ellis
aa46713d3d
Move deprecated functions to bottom of class
2025-09-08 09:58:34 +03:00
Matt Ellis
aef0515183
Replace asDouble with a new toVimFloat function
2025-09-08 09:58:34 +03:00
Matt Ellis
b48f80ee7d
Deprecate VimDataType.asString
...
Prefer `toVimString` to `asString`. It makes it more explicit that the caller requires a Vim String type, and must follow Vim's conversion rules, rather than simple requiring a string. It also prevents confusion with other string functions such as `toString`, `toOutputString`, `toInsertableString`.
The function is deprecated because it's in use by external plugins. There is no change in functionality.
2025-09-08 09:58:34 +03:00
Matt Ellis
fdda1f0eb6
Refactor VimInt.parseNumber
2025-09-08 09:58:34 +03:00
Matt Ellis
69fac0eff0
Deprecate VimDataType.asBoolean
...
The `asBoolean` method does not make it clear that only a Vim Number can be treated as a boolean and incorrectly allowed a Float to be converted.
If a caller needs a boolean value, it should be explicit that it must get a Number by calling `toVimNumber` and then using the new `booleanValue` accessor. This correctly allows conversion from a String, and other Vim datatypes will correctly raise an error.
The implementation of `VimString.toVimNumber` has been updated to match Vim behaviour, and the behaviour of the previously called `VimString.asDouble` by allowing trailing characters while converting a string to a number.
The `asBoolean` function is deprecated because it is used by external plugins.
2025-09-08 09:58:34 +03:00
Matt Ellis
9dd60cdb3b
Introduce VimDataType.toOutputString
...
It's confusing to know the rules for converting between data types. This change introduces a semantically named method for getting a string representation that can be used in output and error messages.
2025-09-08 09:58:34 +03:00
Alex Plate
8aedadde5e
[API] Use the new API for implementation of the ReplaceWithRegister
2025-09-05 17:54:25 +03:00
Alex Plate
763d4518eb
Refactor: Replace deprecated fileSize property
2025-09-05 16:53:45 +03:00
Alex Plate
f5c1b11e4f
[API] Rename Read to EditorAccessor
2025-09-05 16:51:06 +03:00
Xinhe Wang
0d38ac8d6f
Allow focusing components with hints
2025-09-05 16:26:03 +03:00
Xinhe Wang
fd1f762bc2
Adjust the hint color to make it clearer
2025-09-05 16:26:03 +03:00
Xinhe Wang
cfdc3b7dc3
Display only hints prefixed by the currently entered letters
2025-09-05 16:26:03 +03:00
Xinhe Wang
eaaab34434
Bring clicked component highlighting back
...
The highlight will remain active for a fixed period of time.
2025-09-05 16:26:03 +03:00
Xinhe Wang
80f52d70c8
Encapsulate ShortcutDispatcher for use in NERDTree
2025-09-05 16:26:03 +03:00
Xinhe Wang
ff13845b57
Use custom key listener instead of ListPopup to select hints
...
As a result, the user no longer needs to press ENTER to action.
Note that component highlighting is temporarily removed.
2025-09-05 16:26:03 +03:00
Xinhe Wang
b349bb74db
Encapsulate hints generation
2025-09-05 16:26:03 +03:00
Xinhe Wang
90cc7de761
Preserve previous hints if possible
2025-09-05 16:26:03 +03:00
Xinhe Wang
d674d33735
Basic hint generation (permutation)
2025-09-05 16:26:03 +03:00
Xinhe Wang
c4713ed89d
Highlight the current selected component
2025-09-05 16:26:03 +03:00
Xinhe Wang
337fc91261
Traverse the accessible tree instead to support Skia components
2025-09-05 16:26:03 +03:00
Xinhe Wang
bd8dc5a74f
Show a popup instead of a dialog to select the component
2025-09-05 16:26:03 +03:00
Xinhe Wang
9ae2bfea8d
Select elements to click
2025-09-05 16:26:03 +03:00
Xinhe Wang
19ef7588f7
Create class Hint
2025-09-05 16:26:03 +03:00
Xinhe Wang
248111bd1c
Change ToggleOptionAction to DumbAwareToggleAction
2025-09-05 16:26:03 +03:00
Xinhe Wang
76b0f13804
Use accessibleContext for checking clickable elements
2025-09-05 16:26:03 +03:00
Xinhe Wang
7ac9ce78ca
Toggle hints with ToggleOptionAction
...
However, this does not work in Dumb Mode
2025-09-05 16:26:03 +03:00
Xinhe Wang
b304905b35
Simplify KeyStrokeTrie.getData by delegating to getTrieNode
2025-09-05 13:14:34 +03:00
Xinhe Wang
3d19696f3b
Fix casting error in KeyStrokeTrie.getEntries
...
Return an empty sequence if the prefix node is not found in `KeyStrokeTrie`.
Passing a non-existent prefix previously would result in a casting error.
2025-09-05 13:14:34 +03:00
Matt Ellis
572c24ff31
Insert text from incsearch end offset
2025-09-05 12:37:45 +03:00
Matt Ellis
c4a43eef92
Support insert filename literally
2025-09-05 12:37:45 +03:00
Matt Ellis
c22992c16c
Extract find filename at cursor to VimSearchHelper
2025-09-05 12:37:45 +03:00
Matt Ellis
01a612ad60
Add insert filename under caret action
2025-09-05 12:37:45 +03:00
Matt Ellis
606e5c6a9f
Add 'isfname' option, not yet applied
...
Relates to VIM-4018
2025-09-05 12:37:45 +03:00
Matt Ellis
93ef18b32c
Remove unnecessary JvmField annotations
2025-09-05 12:37:45 +03:00
Matt Ellis
fa4c62ebde
Add insert big word at cursor literally action
...
Relates to VIM-2511
2025-09-05 12:37:45 +03:00
Matt Ellis
c5f6b2e336
Add insert big word at cursor command line action
...
Relates to VIM-2511
2025-09-05 12:37:45 +03:00
Matt Ellis
1e27220eaa
Support insert word literally
...
Inserting a word and inserting it literally is the same operation. No need for another action
Fixes VIM-2511
2025-09-05 12:37:45 +03:00
Matt Ellis
b5484345f8
Add insert word under caret action for command line
...
Fixes VIM-2511
2025-09-05 12:37:45 +03:00
Matt Ellis
5d68ba26c2
Add insert current line literally action
2025-09-05 12:37:45 +03:00
Matt Ellis
5c8ca893e1
Insert current line by replaying keys
2025-09-05 12:37:45 +03:00
Matt Ellis
6aff6a07af
Add insert current line in command line
...
Fixes VIM-2511
2025-09-05 12:37:45 +03:00
Matt Ellis
c580aaceed
Add insert register literally action
...
Fixes VIM-2511
2025-09-05 12:37:45 +03:00