Skip to content

Integrate with macOS system find buffer #17467

@quinncomendant

Description

@quinncomendant

Description

On macOS, the string used to search is a system-wide find pasteboard (NSPasteboardNameFind) shared between apps. Zed doesn't sync its search string with the system’s find pasteboard, but it should.

Expected behavior:

  1. Select text in Safari,
  2. use the “Use Selection for Find” command (⌘E; Edit->Find->Use Selection for Find)
  3. switch to Zed,
  4. and execute “search::SelectNextMatch” (⌘G) to go to the next occurrence of the same string in the document.

Similarly this should be supported in reverse, where cmd-e in Zed should push to that same buffer.

Actual behavior:

Zed does not update the string used for its search after executing the “Use Selection for Find” command in another application. Zed just keeps the search string previously defined.

(Some of y'all might be familiar with this issue when it was raised for Atom. :)

Metadata

Metadata

Assignees

Labels

area:editorFeedback for code editing, formatting, editor iterations, etcnever staleto keep the stalebot awayplatform:macOSPlatform-specific feedback for macOS behaviors, features, design, etc

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions