react-notion-x icon indicating copy to clipboard operation
react-notion-x copied to clipboard

Open search dialog from external

Open seonglae opened this issue 4 years ago • 1 comments
trafficstars

Feature Request: Change search state externally

I suggest a feature that externally changable searchOpen state I guess, this file is implementing searhOpen state like this

  const [isSearchOpen, setIsSearchOpen] = React.useState(false)
  const onOpenSearch = React.useCallback(() => {
    setIsSearchOpen(true)
  }, [])

  const onCloseSearch = React.useCallback(() => {
    setIsSearchOpen(false)
  }, [])

I'm not sure how to make this feature as code, but I suggest some applicable functions by this feature

example functions

  • ctrl + p shortcut for activate search dialog like notion.so
  • Auto open search dialog modal when open landing page (what I want to do)

Thanks for this great project

seonglae avatar Jul 31 '21 17:07 seonglae

This is a great suggestion.

Sorry @seonglae for taking so long to respond.

transitive-bullshit avatar Mar 26 '22 07:03 transitive-bullshit