machakann
74898e6f5c
Do not touch v:errmsg
...
Repoted at #147 , #148
2022-07-23 01:02:34 +09:00
Jaehwang Jung
3a7cffd07e
Escape when restoring indentkyes
...
VimTeX's indentkeys contain space, so it should be escaped.
2022-06-11 13:47:22 +09:00
machakann
70022d9277
Implement g:sandwich#input_fallback option
2022-02-06 22:35:23 +09:00
machakann
55cb454c58
Do not touch unused registers
2022-01-30 23:08:45 +09:00
machakann
1d67705ec1
Merge branch 'master' into develop
2022-01-30 21:51:05 +09:00
Iron-E
4d79f6eaa4
fix: don't override existing highlight w/ default
...
highlight! default overrides the existing highlight in order to set a default link. So any highlight group that exists before will be wiped over.
To fix this I have changed highlight! default to highlight default, which only sets the highlight group if it wasn't already defined.
2021-11-29 16:07:28 -05:00
machakann
ad7723c238
Implement module-like inter-file communication
2021-11-29 00:16:03 +09:00
machakann
d02072964a
Do not load lib module in a/o/sandwich.vim
2021-11-28 23:25:19 +09:00
machakann
f462636297
Merge branch 'develop'
2021-11-28 23:12:59 +09:00
machakann
ac3affcb8f
Could not cancel action with Esc if input is not a character
2021-11-28 20:15:32 +09:00
machakann
ffe2bae2fc
Add a simple way to set timeout option both for operators and textobjects
...
Use g:sandwich#timeout and g:sandwich#timeoutlen.
Reported at #123
2021-11-28 16:30:11 +09:00
machakann
8a5fdcb534
Rename global option pickers
2021-11-27 22:14:51 +09:00
machakann
e5a3d58b8e
Operators should refer 'timeout' option
...
Use g:operator#sandwich#timeout as for private setting.
Reported at #123
2021-11-27 21:41:01 +09:00
machakann
6b9d8ec205
Lazily define highlight stuffs
2021-11-06 21:52:42 +09:00
machakann
4cd1ea8db6
Reduce global key mappings
2021-09-12 01:40:40 +09:00
naohiro ono
241cb3f402
Use string comparison instead of pattern matching when filtering by filetype filter
2021-09-03 17:45:48 +09:00
machakann
04f7755100
External textobject may cause unanticipated error
...
Reported in #114 and patched by @obcat
2021-08-29 23:26:07 +09:00
machakann
02e3b6d1ff
Ignore arrow keys (and non-printable) inputs
...
Close #90
2020-02-14 00:19:21 +08:00
machakann
eb1bba9aac
Merge branch 'speedup_macro'
2019-03-13 20:26:47 +08:00
machakann
0ae1cfdd75
Suppress highlight in macro (complex-repeat)
2019-03-13 20:16:26 +08:00
machakann
fa2fc27b91
Add action filter for textobj-sandwich
...
"add" in the action filter prohibits to take effect for textobject and "delete" and "all" in it allows for convenience.
Related #72
2019-03-02 16:04:47 +08:00
machakann
8dc901e357
Reduce :redraw
2019-02-23 00:45:44 +08:00
machakann
558b858706
Suppress autoformatting in a surrounding operation ( #71 )
2019-01-29 21:56:13 +08:00
machakann
fbf0761981
Fix inappropriate naming
2019-01-29 21:45:22 +08:00
machakann
5dd57dbf8a
s:get_assigned_region() doesn't work well with cp932 ( #66 )
2018-05-29 17:55:04 +08:00
machakann
9ea02aace7
Missing patches to suppress errorbells
2018-02-11 00:03:15 +08:00
machakann
4386d90d96
Key input haven't timed-out in some cases. ( #56 )
2017-11-27 00:48:56 +08:00
machakann
3a79547c39
Add indent class
2017-11-22 22:35:02 +08:00
machakann
a7014055af
Add an option to keep indent level anyway ( #54 )
2017-11-22 00:24:54 +08:00
machakann
f254834cec
Counted indent level was wrong when 'noexpandtab'
2017-11-21 20:48:29 +08:00
machakann
80b15ded06
The calculation of indent level was wrong ( #53 )
2017-11-11 13:16:06 +08:00
machakann
c36889803e
operator#sandwich#show() function should not ignore "highlight" option. ( #52 )
2017-10-28 17:21:14 +08:00
machakann
b497e0d8fa
No way to know the type of a target region of the current operation
2017-10-28 16:30:23 +08:00
machakann
15ff877b92
Autoindent breaks the operator-add ( #52 )
2017-10-28 16:01:17 +08:00
machakann
96d93fcbe7
Operator-delete may cause problem in keymapping and complex-repeat (related to #50 )
2017-10-25 21:24:48 +08:00
machakann
0cf4eb9738
Now vim-sandwich is available also in (insert) mode.
...
These operator can be used after <C-o> in insert mode.
2017-03-17 21:10:01 +08:00
machakann
ab5a791840
Merge branch 'dev'
2017-03-14 20:23:59 +08:00
machakann
e88162acbe
Refactoring: Update option handlings.
2017-03-13 00:19:28 +08:00
machakann
380aff22ad
Fix a bug missing highlight group. ( #38 )
...
Related f63eec7b4b
2017-03-04 22:58:42 +08:00
machakann
f63eec7b4b
Obsolete highlight group OperatorSandwichStuff.
...
Use OperatorSandwichChange instead.
2017-03-03 12:22:05 +08:00
machakann
8de8df292b
Remove :silent command from the autocmd events.
...
It was a big barrier to debug hooked functions.
2016-12-14 17:57:29 +08:00
machakann
538a790dc6
Get blockwise visual information without flickering.
2016-12-12 17:42:34 +08:00
machakann
2d26cc95ef
Safer registers handling.
2016-12-12 17:36:31 +08:00
machakann
e8c9d292aa
Tiny fix.
2016-12-11 23:09:16 +08:00
machakann
a67ed9708c
Update highlight system.
2016-12-10 20:16:59 +08:00
machakann
cf48694059
Add :noautocmd command.
2016-12-09 20:31:06 +08:00
machakann
878b4841db
Do not trigger autocmds in insertion.
2016-11-06 22:02:06 +08:00
machakann
180dd8e9b5
Add workaround for a bug of textobjects it/at.
...
if a string like '<~' or '<[' is in a buffer, it/at gives E33 or E55 (probably) unintentionally.
2016-10-30 12:59:28 +09:00
machakann
94f6b9505b
Refactoring: cut out common code as a function.
2016-10-23 23:23:56 +09:00
machakann
ed00ea94cc
Rename 'message' object to 'messenger' object and move into global scope.
2016-10-23 23:18:28 +09:00