40 Commits

Author SHA1 Message Date
machakann 70022d9277 Implement g:sandwich#input_fallback option 2022-02-06 22:35:23 +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 ce24d28819 Fix tests 2020-07-27 00:34:56 +09:00
machakann d037c6ed13 Fix tests
The results for the tests depends on the version of Vim. Just skip.
2019-03-02 21:02:08 +08:00
machakann 39a098f4dc Add an option to keep indent level anyway (#54) 2017-11-22 00:22:32 +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 82c06f0bd3 Revise notification and error messaging. 2016-04-10 18:55:17 +08:00
machakann dbeaae3339 Add a new local option "listexpr". (#16) 2016-04-10 18:55:08 +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 1de59a01ca Drop funcref support of buns.
It is nothing convenient. Make the source codes messing up.
2016-04-05 11:35:46 +08:00
machakann 2b5bb9c34d Disable several test.
Problem: 'cindent' behaves differently in old vim?
2016-04-03 16:27: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 2e3ce54c13 Define the behavior of replace operator with linewise == 2. 2016-03-28 00:58:41 +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 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 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 73b14ab73d Change specs in case that 'expr' buns would be Funcref. 2015-08-22 12:54:03 +08:00
machakann aa2d30a278 There should be a way to cancel an operation in a evaluation of 'expr' buns. 2015-08-09 11:33:37 +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 c1ee5ea145 Set the replace operator characterwise as default in linewise regions. 2015-07-19 10:52:08 +08:00
machakann fa6e7412d5 Add 'autoindent' option and 'indentkeys' options. 2015-07-17 21:49:44 +08:00
machakann e71289d0b2 Rename 'front', 'end' to 'head', 'tail' of the local option 'cursor'. 2015-07-12 14:19:53 +08:00
machakann 83cda7a59b Obsolete the global option 'hide_cursor' and set it as default. 2015-07-10 23:10:12 +08:00
machakann 168bcb3fd7 Correct the last commit. 2015-07-10 22:26:43 +08:00
machakann 3ddc4ee2f7 Add a global option 'g:operator#sandwich#hide_cursor'. 2015-07-10 21:57:34 +08:00
machakann 25d21a2232 Fix a bug on resolving method of input. 2015-07-10 13:18:10 +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 3145a7e32f Raname a local option: 'eval' to 'expr'. 2015-07-03 13:27:14 +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