Skip to content

Commit

Permalink
fix(vim/#2357): Part 1 - Show pending operator in status bar (#2364)
Browse files Browse the repository at this point in the history
__Issue:__ As described in #2357 , we weren't showing any context around a pending operator in the status bar - this is really a step backward.

__Fix:__ This picks up onivim/libvim#218 so that we get some context around the current pending operator, and we show it in now in the statusbar:

![2020-08-26 12 56 23](https://user-images.githubusercontent.com/13532591/91350541-b02e6880-e79b-11ea-8015-2670a7bf690f.gif)

This fixes the operator-pending part of #2357 - we're missing showing the in-progress count of a command, though.
  • Loading branch information
bryphe authored Aug 26, 2020
1 parent a89fc69 commit e6a1d19
Show file tree
Hide file tree
Showing 20 changed files with 389 additions and 118 deletions.
28 changes: 14 additions & 14 deletions bench.esy.lock/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions bench.esy.lock/opam/charInfo_width.1.1.0/opam

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions esy.lock/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions esy.lock/opam/charInfo_width.1.1.0/opam

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions integrationtest.esy.lock/index.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions integrationtest.esy.lock/opam/charInfo_width.1.1.0/opam

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
"esy-skia": "*",
"esy-tree-sitter": "^1.4.1",
"isolinear": "^3.0.0",
"libvim": "8.10869.55",
"libvim": "8.10869.56",
"ocaml": "~4.7.0",
"reason-native-crash-utils": "onivim/reason-native-crash-utils#38c8f00",
"reasonFuzz": "*",
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Mode.re
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type t =
| Visual({range: VisualRange.t})
| Select({range: VisualRange.t})
| Replace
| Operator
| Operator({pending: Vim.Operator.pending})
| CommandLine
// Additional modes
| TerminalInsert
Expand All @@ -37,7 +37,7 @@ let toString =
| None => "Select"
}
| Replace => "Replace"
| Operator => "Operator"
| Operator({pending}) => Vim.Operator.toString(pending)
| CommandLine => "Command Line"
| TerminalInsert => "Terminal Insert"
| TerminalNormal => "Terminal Normal"
Expand Down
Loading

0 comments on commit e6a1d19

Please sign in to comment.