Skip to content
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

isearch (C-s) followed by movement key (C-n, C-p, etc.) doesn't work #29

Open
vvuk opened this issue Nov 14, 2016 · 1 comment
Open

Comments

@vvuk
Copy link

vvuk commented Nov 14, 2016

In emacs, starting an isearch via C-s, typing a few things, and then hitting a movement key such as C-f or C-n causes isearch to end and for the point to move based on wherever it was during the isearch operation. This isn't the behaviour of vs-code's search; the regular keybindings aren't available while in isearch (hitting C-n opens a new tab, for example), and the search window is "sticky"; hitting C-s again even after manually clicking to a window searches again for whatever one was searching for last.

@savioret
Copy link

savioret commented May 4, 2017

I make use of those keybindings which make the search behave a you describe, more or less like emacs does:

	{
		"key": "enter",
		"command": "closeFindWidget",
		"when": "editorFocus && findWidgetVisible"
	},
	{
		"key": "up",
		"command": "closeFindWidget",
		"when": "editorFocus && findWidgetVisible"
	},
	{
		"key": "down",
		"command": "closeFindWidget",
		"when": "editorFocus && findWidgetVisible"
	},
	{
		"key": "ctrl+p",
		"command": "closeFindWidget",
		"when": "editorFocus && findWidgetVisible"
	},
	{
		"key": "ctrl+n",
		"command": "closeFindWidget",
		"when": "editorFocus && findWidgetVisible"
	},

Add to your keybindings file the additional ones you want to force the findWidget to close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants