67 Commits

Author SHA1 Message Date
machakann 74898e6f5c Do not touch v:errmsg
Repoted at #147, #148
2022-07-23 01:02:34 +09:00
machakann 70022d9277 Implement g:sandwich#input_fallback option 2022-02-06 22:35:23 +09:00
machakann ad7723c238 Implement module-like inter-file communication 2021-11-29 00:16:03 +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 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
naohiro ono 241cb3f402 Use string comparison instead of pattern matching when filtering by filetype filter 2021-09-03 17:45:48 +09:00
machakann 02e3b6d1ff Ignore arrow keys (and non-printable) inputs
Close #90
2020-02-14 00:19:21 +08:00
machakann eb1bba9aac Merge branch 'speedup_macro' 2019-03-13 20:26:47 +08:00
machakann 0ae1cfdd75 Suppress highlight in macro (complex-repeat) 2019-03-13 20:16:26 +08:00
machakann fa2fc27b91 Add action filter for textobj-sandwich
"add" in the action filter prohibits to take effect for textobject and "delete" and "all" in it allows for convenience.
Related #72
2019-03-02 16:04:47 +08:00
machakann 8dc901e357 Reduce :redraw 2019-02-23 00:45:44 +08:00
machakann 558b858706 Suppress autoformatting in a surrounding operation (#71) 2019-01-29 21:56:13 +08:00
machakann 5dd57dbf8a s:get_assigned_region() doesn't work well with cp932 (#66) 2018-05-29 17:55:04 +08:00
machakann 4386d90d96 Key input haven't timed-out in some cases. (#56) 2017-11-27 00:48:56 +08:00
machakann c36889803e operator#sandwich#show() function should not ignore "highlight" option. (#52) 2017-10-28 17:21:14 +08:00
machakann b497e0d8fa No way to know the type of a target region of the current operation 2017-10-28 16:30:23 +08:00
machakann 96d93fcbe7 Operator-delete may cause problem in keymapping and complex-repeat (related to #50) 2017-10-25 21:24:48 +08:00
machakann e88162acbe Refactoring: Update option handlings. 2017-03-13 00:19:28 +08:00
machakann f63eec7b4b Obsolete highlight group OperatorSandwichStuff.
Use OperatorSandwichChange instead.
2017-03-03 12:22:05 +08:00
machakann a67ed9708c Update highlight system. 2016-12-10 20:16:59 +08:00
machakann cf48694059 Add :noautocmd command. 2016-12-09 20:31:06 +08:00
machakann ed00ea94cc Rename 'message' object to 'messenger' object and move into global scope. 2016-10-23 23:18:28 +09:00
machakann 0f9ef6e221 Exit code should be 1 if any error occurred even only once. 2016-10-11 01:06:25 +09:00
machakann 1fa19101f8 Delete surroundings selectively when 'synchro' option is on. (#21) 2016-10-11 00:47:43 +09:00
machakann b25a19aa46 Fix a bug on operator.fill() function. 2016-09-22 18:52:32 +08:00
machakann 0cc8fde99a Add workaround to pass tests. 2016-09-22 12:34:19 +08:00
machakann d945890f17 Add visualrepeat.vim plugin support.
Suggested at issue #19.
  - visualrepeat.vim (vimscript #3848)
2016-09-21 20:59:30 +08:00
machakann c2b9182a45 Fix a wrong early-quit condition. 2016-09-16 00:42:27 +09:00
machakann 47e9432725 Fix a bug on linewise-add action.
For example, saiw<Enter> add empty lines incorrectly, because "\<Enter>" =~# '\n' is *not* true.
Pointed out in issue #20.
2016-09-15 19:11:25 +09:00
machakann 92bf7c791b Fix a bug when a 'listexpr' buns are dot-repeated. 2016-08-15 20:08:17 +08:00
machakann 2e0bfa0ea7 Redraw after restoring hidden cursor.
Possively related to #18.
2016-08-14 02:40:19 +08:00
machakann 77d676c1fa Release 'Magic characters's.
Ready for #18.
2016-08-13 17:13:57 +08:00
machakann 6e462e90de Revert "Revert "Update conditions to renew highlightings.""
This reverts commit 548b8545fe.
2016-07-28 21:17:35 +08:00
machakann 548b8545fe Revert "Update conditions to renew highlightings."
This reverts commit f525b3747d.
2016-07-28 20:57:49 +08:00
machakann f525b3747d Update conditions to renew highlightings. 2016-07-28 20:06:30 +08:00
machakann 39317be704 Delete the previous highlight even in operator.blink() method. 2016-07-28 19:56:56 +08:00
machakann 347827d363 Update highlighting system. 2016-06-26 19:25:03 +08:00
machakann 46b03cc1b4 'g:operator#sandwich#highlgihgt_duration' will become obsolete soon. 2016-05-19 12:23:05 +08:00
machakann f4a2fc37d8 Sweep unused valiables. 2016-05-03 19:24:17 +08:00
machakann 895861e7a9 Limit the number of highlighting region to one explicitly.
Originally the highlight object was designed to be able to highlight and scheduled-quench multiple places. However it is not helpful for practical use. So limit the number of highlighting region to one explicitly to avoid trivial weird behaviour. For example, ':normal saiw(saiw(' would show highlight differently before and after this commit.
2016-05-03 13:04:56 +08:00
machakann 2be55b50cf Add persistent-highlighting feature.
- Add g:operator#sandwich#persistent_highlight. "blink" and "glow" are the available choices.
2016-04-30 17:45:31 +08:00
machakann c9c086d052 Hide the timer-quenching function. 2016-04-27 19:03:07 +08:00
machakann 5847a88fcb Experimental: quench blinking highlight by timer.
Available with `let g:operator#sandwich#quench_method='timer'`.
The specification might be changed in future.
2016-04-23 15:42:56 +08:00
machakann bef6de2d43 Blink highlighting only when succeeded at least once. 2016-04-23 14:33:50 +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 b6fde93194 Refactoring: attribute "keepable" should belong to cursor info family. 2016-04-22 21:28:54 +08:00
machakann 428e75dd63 Evaluate expressions in sandbox for security purpose. 2016-04-19 19:15:16 +08:00
machakann e2451dad5e Filter out expr buns earlier in matching deleted/replaced patterns. 2016-04-15 21:50:43 +08:00