aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-02-10Increase version v0.0.1 -> v0.0.2HEADv0.0.2masterTeddy Wing
2020-02-10Add CHANGELOGTeddy Wing
2020-02-10plugin/searchop.vim: Fix default map guardsTeddy Wing
Check for normal and visual modes separately before defining default mappings. Previously I was only verifying that normal mode mappings were available and defining visual mode mappings without explicit checks.
2020-02-09Add READMEv0.0.1Teddy Wing
2020-02-09doc/searchop.txt: Add introductionTeddy Wing
2020-02-05Add documentation draftTeddy Wing
2020-02-05Add license (GNU GPLv3+)Teddy Wing
2020-02-05plugin/searchop.vim: Add `<Plug>` mappingsTeddy Wing
Move hard-coded `z#` and `z*` mappings to `<Plug>` mappings.
2020-02-05plugin/searchop.vim: Add load guardTeddy Wing
2020-02-05Move functions to autoloadTeddy Wing
2020-02-05plugin/searchop.vim: Change search forward mappings to `z*`Teddy Wing
Now that we have both forward and backward directions, use #/*-based mappings.
2020-02-05Add backward search mappingsTeddy Wing
Allow searching backward as well as forward. Add new functions specific to each search direction. Thanks to 'mattn' (https://www.reddit.com/user/mattn/) for describing how to pass variadic arguments to a Vim function: https://www.reddit.com/r/vim/comments/3761po/vimscript_question_passing_arguments_from_a/crk07lz/
2020-02-05Search(): Support visual mode and line-orientedTeddy Wing
Escape newlines so that multiline search works.
2020-02-05Search(): Don't overwrite the unnamed registerTeddy Wing
2020-02-04plugin/searchop.vim: Use z/ mappingTeddy Wing
Seems right, since I'm already using `g/` in vim-nohai. However, consider using a `#`- `*`-based mapping instead to handle forward and backward searching.
2020-02-04Search(): Use `feedkeys` instead of `normal!` to advance searchTeddy Wing
Because of `:h function-search-undo`, using `normal! n` at the end of the function doesn't highlight the matches with 'hlsearch' (though it does advance to the next match). I've seen other mappings that add a `/<CR>` or `n` to the end of the mapping, but that doesn't work here because it's an operator, so `g@` needs to be the last thing in the mapping. And I was reluctant to work out how to make it an `<expr>` mapping. Fortunately, search highlighting works when `n` is used with `feedkeys()`.
2020-02-01Draft version of searching for what was selected by a motionTeddy Wing
Currently doesn't highlight correctly. Only works in normal mode for now. Overwrites the unnamed register. Inspired by https://github.com/godlygeek/vim-files/blob/8714546/plugin/vsearch.vim