Commit Graph
1951 Commits
Author SHA1 Message Date
filipp 063d3949cf Better YAML 2023-06-06 10:42:42 +03:00
filipp c1b87eba03 Annotate functions 2023-06-06 10:42:42 +03:00
filipp bae52964cd Add VimscriptFunction annotation 2023-06-06 10:42:42 +03:00
samabcdeandAlex Pláte 437932cd57 VIM-1990 fix repeat delete find or till wrong MotionType 2023-06-01 10:36:28 +03:00
samabcdeandAlex Pláte 4e7149c945 VIM-2615 add support to sort u command, fix natural sort issue when both string not contain number 2023-05-29 14:41:06 +03:00
Alex Plate 48b18da953 Get text object parameters from the operatorArguments 2023-05-19 10:21:18 +03:00
Alex Plate 904ca5d529 Remove argument argument from text object 2023-05-19 10:16:23 +03:00
Alex Plate 05986d017d Remove deprecated function 2023-05-19 09:52:06 +03:00
Matt EllisandAlex Pláte 798750bf95 Use options API for more cached values 2023-05-17 10:54:13 +02:00
Matt EllisandAlex Pláte e8d9bd551f Add helper functions to storage service 2023-05-17 10:54:13 +02:00
Matt EllisandAlex Pláte d08ea2ee9b Introduce simple cache for parsed option values 2023-05-17 10:54:13 +02:00
Matt EllisandAlex Pláte 52dcb2d290 Treat 'iskeyword' as a local-to-buffer option 2023-05-17 10:54:13 +02:00
Matt EllisandAlex Pláte 4cc883f174 Refactor search helper companion to interface
Helper functions now take the editor rather than the text, ready for search to rely on per-editor options (i.e. '`iskeyword'`). Also standardises on `Int` for search parameters. While the file size is a `Long`, the editor returns a `CharSequence`, which is indexed by `Int`.
2023-05-17 10:54:13 +02:00
Matt EllisandAlex Pláte 5a3c5bd761 Treat 'virtualedit' as a global-local option 2023-05-17 10:54:13 +02:00
Matt EllisandAlex Pláte fd314a3288 Treat 'matchpairs' as a local option 2023-05-17 10:54:13 +02:00
filipp e4f7700044 Refactoring
Update method signatures and return types:
- Getting rid of "magic constants" (e.g. -1) and replacing them with nullable
- Replacing direction Int with Enum
- JetBrains annotations
2023-05-05 09:41:27 +03:00
filipp 2088c1ce00 Move more methods to engine 2023-05-05 09:41:27 +03:00
Alex Plate 30e69e13fd Update kotlin version to 1.8.21 2023-04-26 10:57:54 +03:00
dependabot[bot]andAlex Pláte 17346c255e Bump org.jetbrains:annotations from 23.0.0 to 24.0.1
Bumps [org.jetbrains:annotations](https://github.com/JetBrains/java-annotations) from 23.0.0 to 24.0.1.
- [Release notes](https://github.com/JetBrains/java-annotations/releases)
- [Changelog](https://github.com/JetBrains/java-annotations/blob/master/CHANGELOG.md)
- [Commits](https://github.com/JetBrains/java-annotations/compare/23.0.0...24.0.1)

---
updated-dependencies:
- dependency-name: org.jetbrains:annotations
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-26 10:46:14 +03:00
Matt EllisandAlex Pláte 29bd7cbe6e Update note to include how to add an option 2023-04-26 10:26:06 +03:00
Matt EllisandAlex Pláte a51fc9c612 Add extra notes about the history of refactorings 2023-04-26 10:26:06 +03:00
Matt EllisandAlex Pláte 957874ce2b Remove unused @JvmField annotations 2023-04-26 10:26:06 +03:00
Matt EllisandAlex Pláte 330d92116c Refine inheritance of IJ specific option classes 2023-04-26 10:26:06 +03:00
Matt EllisandAlex Pláte 899adfc1b0 More refactoring to use new API 2023-04-26 10:26:06 +03:00
Matt EllisandAlex Pláte 23535a6ad5 Remove OptionValueAccessor 2023-04-26 10:26:06 +03:00
Matt EllisandAlex Pláte e8b7f00370 Remove accessor from new API 2023-04-26 10:26:06 +03:00
Matt EllisandAlex Pláte 3f2c5070ee Migrate local option access to new API 2023-04-26 10:26:06 +03:00
Matt EllisandAlex Pláte a2352525c5 Migrate global option access to new API
Also fixes some incorrect usages of local options as global, e.g. 'ideajoin' and 'scroll'. There are some options that should be local that are only ever accessed at global scope. These need fixing in the future, e.g. 'iskeyword', 'matchpairs' and 'virtualedit'
2023-04-26 10:26:06 +03:00
Matt EllisandAlex Pláte 50384a526b Introduce option accessor delegated properties
Also migrates tests to use new properties
2023-04-26 10:26:06 +03:00
Matt EllisandAlex Pláte 9ade3365ff Extract StringListOption
While it is conceptually very similar to StringOption, the implementation of list vs not-list operations are very different, and having a separate type will allow us to do more interesting things with overloading when we introduce delegate properties
2023-04-26 10:26:06 +03:00
filipp 2f55d92d83 Move more methods to engine 2023-04-19 15:07:06 +03:00
Matt EllisandAlex Pláte f803c0aa72 Add deterministic initialisation of options 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte 531b0e3537 Provide an API to override option default value
This is specifically to support ideaput in 'clipboard'
2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte cbf6c30be6 Make option value accessor more strongly typed 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte a6f62dd837 Remove unnecessary assert
checkIfValueValid will check datatype is correct
2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte 18d52c2459 Make addListener more strongly typed 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte ee55cfd2dd Improve handling of variance with setOptionValue
With the `out` modifier, the compiler won't report a problem trying to assign `VimInt` to an `Option<VimString>`
2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte 3ab5fc1120 Improve handling of variance 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte b7dcff79ae Improve modifyOptionValue 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte c857b9d6dd Make functions private to SetCommand 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte 8f8c05e451 Remove string based option helper functions 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte c8ca6671ab Remove unused functions 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte 88f0d2e532 Replace constants with strongly typed properties 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte 76a4499c9f Introduce properties for option definitions 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte 6d193ca1f8 Extract option definitions to own file 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte d932172e70 Extract option definitions to own class 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte 9bbf5824fe Use lazy property delegate 2023-03-31 17:37:48 +03:00
Matt EllisandAlex Pláte d042ee3058 Move octopushandler option out of vim-engine 2023-03-31 17:37:48 +03:00
Alex Plate 0efd81142d Remove ktlint from configurations 2023-03-31 11:22:41 +03:00
filipp f4068301ff Add information about text range in original script for executable 2023-03-31 11:00:39 +03:00