vscode-emacs-mcx
vscode-emacs-mcx copied to clipboard
Ctrl-s (search) in when changing to another "file" (buffer) doesn't follow it
One of the things I love most about emacs is the ability to search through multiple files for a particular string (not find across files)-- I just have the file open in another tab and want to search for the "same string" -- in that other file. In emacs (And sublime text) that's possible, as the "last search string" is remembered as the string to search for. Is that possible with VScode and emacs-mode?
If you are using macOS, setting "editor.find.globalFindClipboard": false
in your config may help.
Currently I don't know the way to implement it at extension level, though I'm searching it.
Development note:
-
editor.actions.findWithArgs
command may be the (part of) solution.- Definition: https://github.com/microsoft/vscode/blob/68802ccc44e21661aa426bfd211c6e94788aa42b/src/vs/editor/contrib/find/browser/findModel.ts#L58
- Arguments: https://github.com/microsoft/vscode/blob/68802ccc44e21661aa426bfd211c6e94788aa42b/src/vs/editor/contrib/find/browser/findController.ts#L589-L599
- But there is not way to get the current search string.