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
4cd1ea8db6
Reduce global key mappings
2021-09-12 01:40:40 +09:00
machakann
5db9480480
Move s:uniq_recipes() and s:query() into methods of recipes object.
2017-03-13 00:19:29 +08:00
machakann
e88162acbe
Refactoring: Update option handlings.
2017-03-13 00:19:28 +08:00
machakann
43f03bfa07
Refactoring textobjects: Modify constructors and reduce duplicate info between textobj and stuff.
2017-03-13 00:19:08 +08:00
machakann
0d2cb8a7fb
Fix a bug on the use of argument recipes.
2017-02-25 11:32:03 +08:00
machakann
f77264809e
g:textobj#sandwich#object should be restored.
...
This is required in case that textobj-sandwich call textobj-sandwich itself in its recipe.
2017-02-23 23:30:47 +08:00
machakann
49984c9ea6
Blash up magicchar:i and add magicchar:I. ( #18 )
2016-08-17 14:01:53 +08:00
machakann
03308424cf
Make 'listexpr' option valid also with textobj-sandwich. ( #16 )
2016-08-16 18:59:19 +08:00
machakann
77d676c1fa
Release 'Magic characters's.
...
Ready for #18 .
2016-08-13 17:13:57 +08:00
machakann
92a53758df
Update the system for 'synchro' option.
2016-05-12 21:28:26 +08:00
machakann
b5788b970d
Set 'synchro' option as true in default.
2016-05-11 22:27:30 +08:00
machakann
f0858ce829
Allow to set buffer-local options.
2016-04-08 18:56:39 +08:00
machakann
aa02ce5341
Allow buffer local recipe lists.
2016-04-07 19:21:25 +08:00
machakann
da5550836d
Fix bug on textobj#sandwich#set().
...
Problem : It could not have been use 'all' as kind.
Solution: Always refer 'auto' key. The two objects have same kind of options.
2016-04-05 11:43:09 +08:00
machakann
e743e4aeaf
Split into files.
2016-04-04 23:52:09 +08:00
machakann
2f696bae84
Remove duplicates in recipes.
2016-04-02 21:56:47 +08:00
machakann
07ffdc739c
An empty argument recipe list should be effective. ( #14 )
...
Problem : No way to make compatible mappings with textobj-between (https://github.com/thinca/vim-textobj-between ).
Solution: Add {operator, textobj}.recipe.arg_given key to judge whether recipe list is given via an argument or not.
2016-03-28 20:58:14 +08:00
machakann
23ffe2190a
Give the lowest limit of timeoutlen for safety.
2016-03-28 00:58:38 +08:00
machakann
34e4ee4442
Change option handlings.
...
- Drop opt.integrate() and use opt.of() func to get an option value.
- Manage recipe local options for add and delete actions sepalately to avoid option conflict in replace operator.
2016-03-28 00:58:38 +08:00
machakann
735d19757c
Refactoring textobjects.
2016-03-28 00:56:27 +08:00
machakann
54763117ca
Refactoring.
...
- Split a massive function to small functions.
- Do not freeze global options.
- Use empty() to check a returned value from getchar().
2016-03-15 13:31:22 +08:00
machakann
f9ce5616ad
Delete an unused valiable.
2016-01-29 22:27:45 +08:00
machakann
f35d6a8839
Tiny refactoring.
...
Do not require printf() any more.
2015-10-25 22:58:38 +08:00
machakann
9f7a9c3298
Fix a bug on 'skip_break' option.
...
If line-breaking is not included in the region, textobjects should not skip.
2015-10-25 14:40:34 +08:00
machakann
b3e183d7f2
Visual mode selection area extending condition was wrong.
...
When two recipe like {'buns': [a,b]} and {'buns': [b,c]} exists, the selection a to b is unintentionally switched to b to c.
2015-10-25 11:25:50 +08:00
machakann
7395e5659f
Improve the behavior of 'skip_break' option.
...
'skip_break' option has not worked well with indentation. To do well with indentation, skip white spaces with line breaking together.
2015-10-25 00:23:06 +08:00
machakann
edae7bf1bf
Evaluate the filter for oprions in advance.
2015-09-08 23:01:43 +08:00
machakann
ff753dbee8
Handle options appropriately.
...
1. 'expr' buns and 'regex' buns requires 'input' explicitly.
2. Argument options should not overwrite recipe options.
3. Argument options should be taken into account in integration of recipes.
4. Refactorings related to the aboves.
2015-08-27 13:40:49 +08:00
machakann
da72f40a82
Refactoring.
2015-08-23 09:25:01 +08:00
machakann
6eafe830fa
Fix a bug on 'filetype' filter.
2015-08-22 23:59:07 +08:00
machakann
20edf62e34
The same-character-rule should not be affected by expr and regex options
2015-08-22 14:32:56 +08:00
machakann
73b14ab73d
Change specs in case that 'expr' buns would be Funcref.
2015-08-22 12:54:03 +08:00
machakann
866317b5ba
Add 'skip_expr' local option.
...
It gives the way to skip candidate positions by expressions.
2015-08-22 00:11:58 +08:00
machakann
eae6d95e57
Use explicit comparison operators.
2015-08-15 21:13:19 +08:00
machakann
b9593d2e55
Add "skip_regex_head" and "skip_regex_tail" options.
2015-08-15 09:19:51 +08:00
machakann
e69bfec2e0
Check syntax group names case-insensitively.
2015-08-10 22:47:28 +08:00
machakann
c2d2bcb80e
Disable 'syntax' and 'inner_syntax' option when syntax highlighting is inactive. ( #8 )
2015-08-10 22:47:27 +08:00
machakann
ed06738588
Add 'inner_syntax' option to check the syntax highlight of a surrounded text. ( #8 )
2015-08-10 22:47:10 +08:00
machakann
d030eac9d4
Fix a bug on 'match_syntax' option.
2015-08-10 22:12:25 +08:00
machakann
3b0c1e8101
Add the case that 'matched_syntax' option is 3.
2015-08-10 22:11:45 +08:00
machakann
3b44b49576
Refactoring.
2015-08-10 22:11:20 +08:00
machakann
ca96b9f6f6
Fix a bug on 'synchro' option with 'external' textobjects (after 45189e9b4d).
2015-08-03 20:44:06 +08:00
machakann
d10c8e176f
sort() is not stable before patch-7.4.358.
2015-07-31 23:05:22 +08:00
machakann
45189e9b4d
Better implementation for "synchro" option.
2015-07-25 17:09:34 +08:00
machakann
89dca1e2a9
Refactoring.
2015-07-22 23:15:49 +08:00
machakann
2fe076fc46
Update default recipes.
2015-07-12 15:03:07 +08:00
machakann
6907f4719e
Flash echoing when dot repeating.
2015-07-10 20:37:33 +08:00