Commit Graph

5956 Commits

Author SHA1 Message Date
renovate[bot]
acc9c1cd7b
Update dependency vsce to v1.100.2 (#7193) 2021-10-22 11:03:24 -04:00
Jason Fields
17518cd27c Fix a few issues with command line history
Fixes #5694, fixes #4093
2021-10-21 13:10:08 -04:00
Jason Fields
028e9c6533 Big refactor of command line & search
This removes a lot of code duplication, creates a better abstraction,
makes testing easier, and lays the groundwork for some features like:
- `:s` and similar commands working with `hlsearch` (#4934)
- The expression register (#4383)
- Better `incsearch` support (#4837)

The central change here is to take various pieces of global state which
were scattered and throughout the project and bring them together,
localizing them where possible to an object (`CommandLine`) held by
`VimState` (this naturally fixes #7038).

This applies to both ex commands and the search command line, which
means we finally have a uniform interface for them!
2021-10-21 01:26:45 -04:00
renovate[bot]
82c92cc732
Update dependency fork-ts-checker-webpack-plugin to v6.4.0 (#7190) 2021-10-20 20:28:09 -04:00
renovate[bot]
701f4790cf
Update dependency @types/lodash to v4.14.176 (#7188)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 00:00:18 +00:00
renovate[bot]
00d862f00a
Update dependency webpack to v5.59.1 (#7189) 2021-10-20 18:57:33 -04:00
Jason Fields
f1186203af Upgrade to node v14
Recent VS Code versions ship with electron 13, which is built from node 14.
This just affects the docker environment we run tests in and the node type definitions.
2021-10-20 16:47:42 -04:00
renovate[bot]
163d1bf38e
Update dependency fork-ts-checker-webpack-plugin to v6.3.6 (#7185) 2021-10-20 12:18:59 -04:00
renovate[bot]
9b469dc24c
Update dependency @types/glob to v7.2.0 (#7182)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 00:31:35 +00:00
Milo Lee
a4b1834cff
Fix release date error (#7178) 2021-10-19 18:05:21 -04:00
renovate[bot]
cc257b799d
Update dependency fork-ts-checker-webpack-plugin to v6.3.5 (#7181)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 21:13:41 +00:00
renovate[bot]
4ac8aeb077
Update dependency webpack-cli to v4.9.1 (#7180) 2021-10-19 15:06:59 -04:00
renovate[bot]
64ff88ef81
Update dependency webpack to v5.59.0 (#7179) 2021-10-19 14:55:21 -04:00
renovate[bot]
9001dcc77b
Update dependency webpack to v5.58.2 (#7177) 2021-10-19 13:34:31 -04:00
WhiteSource Renovate
94f833ee1a
Update dependency typescript to v4.4.4 (#7175) 2021-10-19 13:23:16 -04:00
WhiteSource Renovate
77f87946fe
Update dependency mocha to v9.1.3 (#7174) 2021-10-19 13:13:25 -04:00
renovate[bot]
53e699ca11
Update dependency @types/node to v12.20.33 (#7172) 2021-10-19 13:04:13 -04:00
renovate[bot]
7382a24e19
Update dependency fork-ts-checker-webpack-plugin to v6.3.4 (#7173)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 12:52:53 -04:00
Jason Fields
94503c480e bump version 2021-10-19 12:39:51 -04:00
Jason Fields
c0f19a145f Make :ex an alias for :e[dit] and :exi[t] an alias for :x[it] 2021-10-19 12:36:14 -04:00
Jason Fields
37d2d0d864 Fix argument parsers for buffer/tab ex commands
Fixes #7171
2021-10-19 12:19:27 -04:00
Jason Fields
007872ab63 Implement :ce[nter] 2021-10-19 03:01:11 -04:00
Jason Fields
9ee8edf481 Implement :ri[ght] 2021-10-19 02:45:12 -04:00
Jason Fields
af9fd5a26b Remove stray debug logging in test case 2021-10-19 02:23:30 -04:00
Jason Fields
987d998d06 Implement :le[ft] 2021-10-19 02:20:43 -04:00
Jason Fields
f4b06cfff6 bump version 2021-10-18 17:46:52 -04:00
Jason Fields
2350984fd7 Throw E488 ("trailing characters") if an ex command's arguments fail to parse
This is inexact and should be improved in the future, but at least this error will be displayed nicely.
2021-10-18 13:31:50 -04:00
Jason Fields
83b9792fa6 Implement gO, which shows the file outline 2021-10-16 22:06:56 -04:00
Jason Fields
71d9c1670f Implement a few simple ex commands
- `:p[rint]` and friends (arguments still unsupported)
- `:te[rminal]`
- `:asc[ii]`
2021-10-16 21:00:43 -04:00
Jean Pierre
3d37bb4898
Load process polyfill automatically, required by util (#7156)
Fixes #7150
2021-10-15 11:01:11 -04:00
Jason Fields
cf6673f2c1 Add :up[date] as alias for :w[rite] 2021-10-15 02:27:00 -04:00
Jason Fields
aaee7e2cbe Don't throw exception if a pattern fails to parse 2021-10-15 00:42:54 -04:00
Jason Fields
0eb3d1d950 Fix bug in new Pattern implementation that would cause it to miss one match 2021-10-14 23:36:56 -04:00
Jason Fields
10e554f4e5 Refactor ex command argument parsing
We're now using Parsimmon for ex command arguments, which allows for much better, more complicated argument parsing.
A handful of cases work now that didn't before, but I probably broke some as well - this still requires quite a lot more work.
Fixes #5888, fixes #5859, fixes #7058
2021-10-14 22:46:06 -04:00
Jason Fields
8aa78b21cf Prettier 2021-10-14 17:09:15 -04:00
Jason Fields
5d25171edc
Create SECURITY.md
Fixes #6219
2021-10-14 16:17:51 -04:00
Jason Fields
0922abbbe0 Remove broken link to "Linux setup" section in README
Fixes #7080
2021-10-14 14:06:51 -04:00
Jason Fields
e9df5b7b11 Backticks around key in error message 2021-10-14 14:04:42 -04:00
Jason Fields
27b915808f Enable forceConsistentCasingInFileNames in tsconfig
See www.typescriptlang.org/tsconfig#forceConsistentCasingInFileNames
2021-10-14 01:10:15 -04:00
Jason Fields
f86cacb5bc Fix <C-^> when working with files outside the workspace
Absolute paths need to be handled differently.
Fixes #6679
2021-10-14 00:50:09 -04:00
hellorayza
0f5734054d
Update ROADMAP.ZH.md (#7137)
Co-authored-by: Jason Fields <jasonfields4@gmail.com>
2021-10-11 15:26:15 -04:00
J.R. Maingat
3a0f14d1f4
Add actions for increasing/decreasing pane width/height with <C-w> +/-, >/< (#7138)
Fixes #2044
2021-10-07 00:12:31 -04:00
berknam
a7f71a1a53 Fix mouse selection not selecting last character of line
Fixes #4039, fixes #3260
2021-10-06 03:12:00 -04:00
renovate[bot]
f64d698681
Update dependency @types/node to v12.20.28 (#7134)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-06 00:26:19 +00:00
renovate[bot]
312bedec77
Update dependency webpack to v5.57.1 (#7133)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-05 16:19:38 -04:00
renovate[bot]
4c10e49679
Update dependency webpack to v5.57.0 (#7131)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-05 12:26:21 -04:00
Joe Crop
af52449166
:w! should not permanently change file permissions (#7092)
- In proper vim fashion, force-writing a file should not change the permissions of the file permanently
- When making a file writable (now temporarily), the chmod value should be octal, but was decimal
Fixes #6553
2021-10-05 00:45:50 -04:00
Shinichi Katayama
112a3b7fc1
Evaluate configuration.iskeyword whenever it's needed (#7126)
This ensures correct behavior when the setting is changed or when switching between languages.
Fixes #7123
2021-10-04 18:59:59 -04:00
renovate[bot]
8f0462958b
Update dependency webpack to v5.56.1 (#7127)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-04 10:19:40 +00:00
Jason Fields
61ed5637ce Significant refactor of search system and :s[ubstitute]
Central to this refactor is a rationalization of pattern parsing - we now have an immutable`Pattern` class with its own Parsimmon parser; it's now used everywhere.

A few enhancements, such as supporting `/{pattern}/` as line specifier in line range

And some bugs fixed:
- `\n` now expands to `\r?\n` (to work with CRLF files)
- `\<` and `\>` (word boundaries) are now mapped to `\b`

Refs #3996
2021-10-03 00:09:05 -04:00