vscode-emacs-mcx
vscode-emacs-mcx copied to clipboard
Resuming incremental search replaces old search with word at current location
Steps to Reproduce
- Search for word (C-s).
- Exit incremental search through movement (e.g., C-a, jump to front of line).
- Assuming a different word is now under the cursor, resuming the incremental search (pressing C-s again) will instead search for the current word instead of resuming previous search.
Expected Behavior
Emacs would resume the previous incremental search, instead of starting a new search with the word under the cursor.
Versions
Awesome Emacs Keymap: 0.11.2
VSCode Version: 1.33.1
Commit: 51b0b28134d51361cf996d2f0a1c698247aeabd8
Date: 2019-04-11T08:20:22.771Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.19.27-gentoo-r1
Setting editor.find.seedSearchStringFromSelection
to false will stop the find widget from doing this. Perhaps the extension should set this setting.
It seems overriding configuration by extension is not allowed now. Related issue: https://github.com/microsoft/vscode/issues/26707#issuecomment-461538461
For now, please set editor.find.seedSearchStringFromSelection
config as @joeshaw wrote by yourself. Thanks!
I love the extension, but this particular problem with C-s has been driving me nuts. Thanks for the workaround!
memo: https://github.com/microsoft/vscode/issues/1396
https://code.visualstudio.com/docs/getstarted/settings#_default-settings
link to the config docs as it's not a boolean type as the comments above suggest. the config accepts "never", "always", "selection"
Thank you. It seems to have been changed at v1.59: https://github.com/microsoft/vscode-docs/commit/a27b0efea3c05b4e06548dba1ad6b58979f1a79a#diff-d432cc9e616a920ea35cfeddb72b780f663270fd96f6871ec99dc8bda5b8cfb5R350
I will update the README of this extension.
Yet, this page still says
This feature can be turned off by setting editor.find.seedSearchStringFromSelection to false.
So it seems to accept both false
and "never"
.
https://github.com/whitphx/vscode-emacs-mcx/pull/1168
Updating the VSCode settings seems to be possible:
- https://stackoverflow.com/questions/68526627/vscode-extension-how-do-i-edit-workspace-global-config
- https://stackoverflow.com/questions/54356069/vs-code-extension-to-update-workspace-settings
-> Try to set editor.find.seedSearchStringFromSelection
programatically.
~~From 0.54.0, this extension overrides the default value of editor.find.seedSearchStringFromSelection
to "never"
so the workaround introduced above will no longer necessary.
It still allows configuring the setting by users, so people who like VSCode's default behavior like #1278 can use it while they need to edit the settings by hand.~~
I changed my mind and overriding the default value of the global config is too aggressive, so reverted it #1768, v0.51.1.