-
Notifications
You must be signed in to change notification settings - Fork 38.2k
Description
Support for macOS's NSFindPboard, which is a global shared find buffer. Which allows one to put text into the find buffer from other native apps like Chrome, TextEdit, Safari, Sublime, etc. and then switch to other Cocoa apps and use cmd-g to find next matching text.
I suggest binding this new action to cmd-e for ux sensibility on macOS.
from #3431 (comment)
Based on actions.find in VSCode, each open buffer seems to have it's own (non-shared) find pasteboard. So actions.find works fine in a single buffer, but I can't cmd-e some text in one file, then cmd-g it in my next file...
We need to add a new action/function such as editor.action.addSelectionToNextFindMatchInGlobalBuffer which may work in other systems as well, but initially for macOS.
Electron will likely need modifications to expose an API capturing the NSFindPboard.
ref: atom/atom#4650 (comment)
Alternatively, we can execute a shell script to gain access to the global find pasteboard in macOS with pbpaste -pboard find.
- VSCode Version: 1.4.0
- OS Version: macOS
/cc @bpasero