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
machakann
59f95e614f
Add a link to sandwich-compound-recipes
2022-07-03 17:53:58 +09:00
machakann
65e89ca377
Remove synchro options from document
2022-07-03 17:53:31 +09:00
machakann
e0069cbef3
Style fixes
...
Related #145
2022-07-03 17:46:27 +09:00
machakann
525d6adb06
Merge pull request #145 from BertrandSim/sandwich-compound
...
Document how to create compound recipes
2022-07-03 17:31:50 +09:00
BertrandSim
a69c3f55f6
fix typos
2022-06-15 23:03:18 +08:00
BertrandSim
aafe1cc834
Document how to create compound recipes
...
Illustrated through a tutorial that creates compound recipes for brackets `(),[],{}` and quotes `'',""`.
2022-06-15 16:54:22 +08:00
machakann
e114a5e0c9
Merge pull request #144 from tomtomjhj/escape-indentkyes
...
Escape when restoring indentkyes
2022-06-12 23:53:01 +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
17266bab12
Update the docs on new key mappings
2022-05-14 21:48:50 +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
48acdaded6
Merge branch 'issue127'
...
Fix #127
2022-01-30 21:47:42 +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
b0a4a10f15
Define keymappings explicitly in tests
2022-01-29 22:17:43 +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
6ab5f16a56
Do not make a keymap on select mode
...
Reported at #132
:map command make a mapping on select mode, but it is not intended.
Additionally, :map with <unique> attribute has a problem; if any keymap for 'sa' is defined in one of normal/visual/operator-pending/select mode the 'sa' keymap in all the other modes are not defined.
2022-01-19 00:04:56 +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
machakann
cfe8b70e4f
Merge pull request #125 from Iron-E/patch-1
...
fix: don't override existing highlight w/ default
2021-12-01 01:10: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
17eb132421
Update document on default recipes (remained)
2021-11-28 20:26:34 +09:00
machakann
1b76e8f635
Update document on default recipes
2021-11-28 20:21:08 +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
c3877254b0
Change the rules to disable default keymappings
2021-10-31 01:51:35 +09:00
machakann
b00d98d35a
Add test for surround-style keymappings
2021-10-23 23:37:43 +09:00
machakann
b5bd9f42ed
Easy interface for key-remapping
2021-10-23 23:30:50 +09:00
machakann
4cd1ea8db6
Reduce global key mappings
2021-09-12 01:40:40 +09:00
machakann
785fb39d79
Merge pull request #116 from obcat/fix-filetype-filter
...
Use string comparison instead of pattern matching when filtering by filetype filter
v1.0.0
2021-09-03 18:45:31 +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
machakann
e7e65786a0
Update the recipes for surround-style-keymappings
...
#106
2020-12-15 23:30:59 +09:00
machakann
f0bb324395
Fix wrong test condition for magic character "f"
...
#99
2020-07-28 00:29:02 +09:00