machakann
4da6734499
Implement search-forward feature for textobjects
2022-07-23 01:26:54 +09:00
machakann
74898e6f5c
Do not touch v:errmsg
...
Repoted at #147 , #148
2022-07-23 01:02:34 +09:00
machakann
7ebffd4555
Revert "Make magicchar-t more context-cognitive"
...
This reverts commit 7bdd7fc4b4 .
This commit is somehow broken. Repoted at #149
2022-07-23 00:51:45 +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
7bdd7fc4b4
Make magicchar-t more context-cognitive
...
This commit make, for example, sr(tp<CR> works as follows.
(foo) -> <p>foo</p>
2022-03-12 22:48:34 +09:00
machakann
f3f7542098
Fix a bug of textobj-query with inprintable input
2022-02-06 22:37:28 +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
machakann
39673fb3ce
Elect textobjects by representative length
...
Textobj-auto has elected text by wrapped text excluding surroundings. However, this method works unintentionally, for example, reported at #127 . This commit changes the election algorithm to use representative lengths; it is the length of wrapped text excluding surroundings if the cursor inside or including surroundings if the cursor is on either one of the surroundings.
2022-01-30 21:38:21 +09:00
machakann
665414fe90
Revert "Elect item by the length from head to tail"
...
This reverts commit 6e686dae33 .
2022-01-29 22:15:45 +09:00
machakann
6e686dae33
Elect item by the length from head to tail
2022-01-08 21:42:55 +09:00
machakann
95d41c9ab1
Revert "Change the rule to select by auto-textobject"
...
This reverts commit a68205cdc7 .
It's not so easy to understand the rules to select buffer text.
2021-12-31 18:54:51 +09:00
machakann
a68205cdc7
Change the rule to select by auto-textobject
...
It has been chosen only by the length of inner wrapped text.
Now a text under the cursor will be prioritized.
2021-12-26 02:14:59 +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
3ac6d5fffd
Refactor bundled textobj-functioncall
2021-11-28 23:12:09 +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
8314e35da5
Textobject should refer 'timeout' option
...
Use g:textobj#sandwich#timeout for private setting.
Reported at #123
2021-11-27 21:41:32 +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
badf78aa82
Do not see magicchar-i inputs as regex
...
Reported in #113
2021-09-01 00:44:30 +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
9e6340affe
'synchro' option is no longer required
2020-12-15 23:53:27 +09:00
Jędrzej Boczar
b4283f827f
Use buffer-specific options before global in magicchar-f
2020-07-26 20:28:21 +02:00
machakann
0f5278e58b
Magic character "t" and "T" doesn't work well with :set selection=exclusive
...
Reported at #98
2020-07-26 22:31:14 +09:00
machakann
13c2bf1426
"saiwT" should work according to the help
2020-07-25 22:10:04 +09:00
machakann
bb5a3270ed
Do not check syntax coloring in default
...
It causes quite unintuitive problems sometimes. #8 , #93
2020-07-18 22:18:12 +09:00
machakann
02e3b6d1ff
Ignore arrow keys (and non-printable) inputs
...
Close #90
2020-02-14 00:19:21 +08:00
machakann
d19545c6fe
Check highlight ids are still alive before deleting
...
Some plugins use clearmatches(), which might mess up the internal states. This patch is to avoid the situation; it is a little costly but acceptable hopefully.
Reported at machakann/vim-highlightedyank#40
2020-02-01 11:58:29 +08:00
Filipe Kiss
e7a1621d71
Add new JSX Filetypes
2019-12-05 22:54:01 +01:00
Filipe Kiss
42619a129e
Indentation changes
2019-06-11 09:56:16 -03:00
Filipe Kiss
9c4ca2090f
Requested changes
2019-06-10 08:02:32 -03:00
Filipe Kiss
4fe6225fd2
Add JSX className support
2019-04-13 21:16:37 -03: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
cc7895b179
sandwich#util#addlocal() cannot override the current settings.
...
Related #73
2019-03-04 19:32:40 +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
Unknown
d441cf5a45
Allow users to customize magicchar-f ( #71 )
...
Use `g:sandwich#magicchar#f#patterns` or `b:sandwich_magicchar_f_patterns`.
Each of those are a list of patterns dictionary like:
let g:sandwich#magicchar#f#patterns = [
\ {
\ 'header' : '\<\h\k*',
\ 'bra' : '(',
\ 'ket' : ')',
\ 'footer' : '',
\ },
\ ]
2019-02-02 16:20:56 +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
eff72672bd
Refactor magicchar-f
2019-01-29 21:45:22 +08:00
machakann
43408bdf00
Magicchar-f cannot delete a function holding a character inside parentheses ( #47 )
2019-01-29 21:44:16 +08:00