Skip to content
This repository was archived by the owner on Apr 6, 2018. It is now read-only.

Commit 1d85e3f

Browse files
committed
give operator-pending mode its own cursor
1 parent 896822a commit 1d85e3f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

styles/vim-mode.less

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
opacity: 0.5;
2121
}
2222

23+
.low-block-cursor(@visibility: visible) {
24+
border: none;
25+
border-bottom: 10px solid @syntax-cursor-color;
26+
background: none;
27+
visibility: @visibility;
28+
opacity: 0.5;
29+
}
30+
31+
2332
atom-text-editor.vim-mode.command-mode,
2433
atom-text-editor.vim-mode.operator-pending-mode,
2534
atom-text-editor.vim-mode.visual-mode,
@@ -56,3 +65,29 @@ atom-text-editor.vim-mode.visual-mode
5665
}
5766
}
5867
}
68+
69+
atom-text-editor.vim-mode.operator-pending-mode
70+
{
71+
&::shadow, // shadow-DOM enabled
72+
& // shadow-DOM disabled
73+
{
74+
.cursor {
75+
.low-block-cursor(hidden);
76+
}
77+
}
78+
}
79+
80+
atom-text-editor.vim-mode.operator-pending-mode.is-focused
81+
{
82+
&::shadow, // shadow-DOM enabled
83+
& // shadow-DOM disabled
84+
{
85+
.cursor {
86+
.low-block-cursor;
87+
}
88+
89+
.cursors.blink-off .cursor {
90+
.low-block-cursor(hidden);
91+
}
92+
}
93+
}

0 commit comments

Comments
 (0)