25 Commits

Author SHA1 Message Date
machakann 70022d9277 Implement g:sandwich#input_fallback option 2022-02-06 22:35:23 +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 ce24d28819 Fix tests 2020-07-27 00:34:56 +09: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 4b085c84f9 Update tests (#45) 2017-08-21 23:51:12 +08:00
masaaki nakamura c038192bf7 Fix a bug on 'external' textobject handling. 2016-05-12 19:32:16 +08:00
machakann f8b353b0ea Add 'default' to a local option 'cursor' and set it as default.
It is almost same as 'inner_head' but move cursor to the first non-space character if the cursor is on the head of line.
2016-04-05 15:48:16 +08:00
machakann 4fe1774807 Fix wrong command in tests for the delete operator. 2016-04-03 16:26:43 +08:00
machakann 10c8474656 Fix a bug on local option 'skip_space'. 2016-04-02 22:41:33 +08:00
machakann 9a5c5f1c8f Test more strictly. 2016-04-02 20:30:20 +08:00
machakann b861d0e689 Fix weird behaviors with autoindent. (Close #7)
Since these operators edit a text from tail to head to avoid shifting target region, autoindent features haven't worked well. This commit changes that let the operators edit from head to tail with computing shift, it makes more similar as user does and reasonable for autoindent functions.

At the same time, because the problem has been solved, default values of a local option 'autoindent' are set to -1 (as user is using).
2016-03-28 00:56:05 +08:00
machakann 81d07deef2 Change numbering for tests. 2016-03-15 22:43:05 +08:00
machakann cdd6f29c36 Add test for multibyte characters. 2015-09-29 19:14:52 +08:00
machakann e78be7febf Cursor was moved unintentionally when assigned region is invalid.
This commit fix a bug when a invalid region is assigned. For example,
a key sequence 'sdb' is used when there is no sandwiched text, cursor is
moved to left. This is not intended, cursor should not move in that
case.

This problem is reported in issue #8.
2015-09-12 16:23:22 +08:00
machakann 6eafe830fa Fix a bug on 'filetype' filter. 2015-08-22 23:59:07 +08:00
machakann 1a73bad519 Change the specification of 'command' option. 2015-07-19 15:47:47 +08:00
machakann dc6ef947c4 Add tests for undo. 2015-07-19 14:49:40 +08:00
machakann 164ca5f33f Define a new behavior of 'skip_space' option when it is 2. 2015-07-19 13:25:51 +08:00
machakann e71289d0b2 Rename 'front', 'end' to 'head', 'tail' of the local option 'cursor'. 2015-07-12 14:19:53 +08:00
machakann eda1f6e953 Change the behavior for blockwise regions. 2015-07-04 16:02:23 +08:00
machakann c50ef0cd88 Rename a filter: 'user_filter' to 'expr_filter'. 2015-07-03 13:32:15 +08:00
machakann 69018d0d66 Define the spec of key mapping functions. 2015-07-03 11:08:47 +08:00
machakann ec05c169bb Add 'user_filter'. 2015-06-19 15:41:40 +08:00
machakann e78e54a38c Add test for 'input' and 'filter's 2015-06-19 14:23:36 +08:00
machakann 63876a95b7 first commit 2015-05-23 16:43:17 +08:00