-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
任意のテキストが入力された状態で開始することができる機能がほしい #68
Comments
あ、あと具体的にやりたいこととしては以下のようなマッピングになります。 map <expr> <C-n> "\<Plug>(incsearch-forward)".@/ |
ちょっとタイトル変えました。 map <expr> <C-n> incsearch#forward_expr(@/) |
欲しいとは前々から僕も思ってたんですが進捗状況がよろしくなかった顔. コマンドを提供するかは考え中ですが, 少なくとも関数呼び出しでできるようにはしたいと思います. |
きたい |
関数呼び出しによるデフォルトパターン指定の対応を dev ブランチ https://github.com/haya14busa/incsearch.vim/tree/dev にて行いました. 使用法noremap <expr> <C-n> incsearch#go({'pattern': histget('/', -1)}) offsetなどに対応するために あともし使っていればの話ですが |
ありがとうございます。 |
ありがとうございます! |
マスターにマッジしました |
benri |
yosa. ありがとうございましたー |
動作イメージとしては
:Incsearch hoge
と入力すれば/hoge
が入力された状態で開始されるようなユーザコマンドです。現状、
<Plug>(incsearch-forward)hoge
というようなキー呼び出しを行えば同等のことを行えるのですがこれだとちょっとパフォーマンスが悪いのです…(これは vital-over 側の都合なので
s:cli.get()
に対して直接開始時のテキストが渡せるような仕組みがあれば嬉しいです。The text was updated successfully, but these errors were encountered: