machakann
4da6734499
Implement search-forward feature for textobjects
2022-07-23 01:26:54 +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
machakann
ad7723c238
Implement module-like inter-file communication
2021-11-29 00:16:03 +09:00
machakann
4cd1ea8db6
Reduce global key mappings
2021-09-12 01:40:40 +09: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
fa01fa2356
Fix a bug in corresponding quotes searching ( #63 )
...
match_syntax option was used but highlight was not so reliable always.
2018-03-26 19:30:38 +08:00
machakann
a1f4a3b64e
Suppress errorbell
2018-02-03 13:17:50 +08:00
machakann
77401e9507
Buns should have not been escaped before passing to operator-sandwich. ( #40 )
2017-03-22 00:48:43 +08:00
machakann
7f61cb63f3
Fix a bug when no surround has found.
2017-03-18 15:45:52 +08:00
machakann
2316553e8b
Refactoring: Quit earlier
2017-03-14 12:43:11 +08:00
machakann
c36a624a1b
Refactoring: Save the original cursor position for each sandwich object.
2017-03-13 00:19:35 +08:00
machakann
7ec5527615
Refactoring: Move some functions from textobj object to sandwich object.
2017-03-13 00:19:34 +08:00
machakann
8dd0122f35
Obsolete sandwich.startpos().
2017-03-13 00:19:33 +08:00
machakann
638580e541
Refactoring: Split textobj.is_valid_candidate() function into small functions.
2017-03-13 00:19:32 +08:00
machakann
c0944f3e1e
Refactoring: Rename stuff object to sandwich object.
...
The name stuff is too ambiguous.
2017-03-13 00:19:31 +08:00
machakann
5db9480480
Move s:uniq_recipes() and s:query() into methods of recipes object.
2017-03-13 00:19:29 +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
dd645deca4
s:is_input_matched() function should not change original info.
...
The values in 'buns'/'input' key may be filtered and it may cause problem in dot-repeating.
2017-02-23 23:29:18 +08:00
machakann
1fa19101f8
Delete surroundings selectively when 'synchro' option is on. ( #21 )
2016-10-11 00:47:43 +09:00
machakann
78ab9db292
Better way to get a length on a buffer.
2016-05-19 12:21:51 +08:00
machakann
92a53758df
Update the system for 'synchro' option.
2016-05-12 21:28:26 +08:00
machakann
4884e6933f
Revert "Evaluate expressions in sandbox for security purpose."
...
Because ':redraw' command is not available in sandbox... It deactivate
important features, not convenient...
This reverts commit 428e75dd63 .
2016-04-23 13:40:20 +08:00
machakann
428e75dd63
Evaluate expressions in sandbox for security purpose.
2016-04-19 19:15:16 +08:00
machakann
e743e4aeaf
Split into files.
2016-04-04 23:52:09 +08:00