[gnome-builder/wip/chergert/editorsearch] vim: set search text based on current selection
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/editorsearch] vim: set search text based on current selection
- Date: Wed, 11 Oct 2017 07:06:24 +0000 (UTC)
commit 08d0f2a8b7344c52e9ce226f794e079fc8a00271
Author: Christian Hergert <chergert redhat com>
Date: Wed Oct 11 00:05:18 2017 -0700
vim: set search text based on current selection
When starting a search using vim visual mode, prime the search
using the text from the editor.
src/libide/keybindings/vim.css | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libide/keybindings/vim.css b/src/libide/keybindings/vim.css
index a8ea254..6bf849f 100644
--- a/src/libide/keybindings/vim.css
+++ b/src/libide/keybindings/vim.css
@@ -2052,6 +2052,9 @@
"end-macro" ()
"set-mode" ("vim-normal", permanent) };
+ bind "slash" { "set-search-text" ("", 1)
+ "action" ("editor-view", "find", "") };
+
bind "e" { "movement" (next-word-end, 1, 0, 1) };
bind "<shift>e" { "movement" (next-full-word-end, 1, 0, 1) };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]