8000 Atom doesn't respect/update OSX's find pasteboard / clipboard · Issue #4650 · atom/atom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Atom doesn't respect/update OSX's find pasteboard / clipboard #4650
Open
@ultramiraculous

Description

@ultramiraculous

In OS X there's a separate pasteboard, NSFindPboard, used to keep search fields in sync. The pasteboard gets updated when a search field changes or the user hits ⌘-E with text selected. It can be pretty handy when you're searching through code for the same keyword, and most apps seem to generally respect it (Safari/XCode/Chrome/etc). In general it seems like apps check it when they become active and update their search fields.

Chromium definitely supports NSFindPboard (with some of the impl here), but I'm not sure that stuff is accessible at all from the Javascript layer.

One option is just to shell out to pbpaste/pbcopy to get/update the pboard's contents, as in:

 pbpaste -pboard find

will dump the contents of NSFindPboard to stdout.

You could also technically get at it with NodeObjC, but that seems like overkill.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0