kbar

fast, portable, and extensible cmd+k interface for your site

MIT License

Downloads
272.6K
Stars
4.8K
Committers
34

Bot releases are hidden (Show)

kbar -

Published by timc1 almost 3 years ago

Lil' release to get up to date on recent additions.

Enhancements

  • Add section name by default to command keywords (#144)
  • Add customizable search placeholder (#152)

Bug fixes

  • Add event callbacks for shortcuts (#150)
kbar -

Published by timc1 almost 3 years ago

Bug fixes

  • Fixed styles prop type for KBarPositioner #138
  • Fixes an issue where toggling the command bar when focused within contenteditable caused event.defaultPrevented to not work as expected ESC #139
kbar -

Published by timc1 almost 3 years ago

Bug fixes

  • Fixes an issue where the default useKBar export did not work in Vite builds. #131 (@kevinhu)
kbar - v0.1.0-beta.22

Published by timc1 almost 3 years ago

Undo/Redo

Introducing the ability to easily add undo & redo functionality to actions!

  • Create the undo (negate) action by returning a function from perform:
    createAction({
      perform: () => {
        // logic to perform
        return () => {
          // logic to undo
        }
      }
    })
    
  • Perform actions using action.command.perform
  • Explicitly undo actions using action.command.undo, redo using action.command.redo

demo

Fixes

  • Deprecated the usage of useDeepMatches in favor of just useMatches. #124
  • Reworked a few internal types; e.g. BaseAction renamed to Action
kbar -

Published by timc1 almost 3 years ago

Bug fixes

  • Fixes an issue where mobile Safari/Firefox outer clicks were not firing. #123
kbar -

Published by timc1 almost 3 years ago

Enhancements

  • Support for screen readers added ✨ #111
  • Support for external analytics added; onOpen, onClose, onQueryChange, onSelectAction #110

Bug fixes

  • Enable users to opt out of implicit scrollbar management. #115

Misc

  • All exports from /example now import from the global entry point. #116
kbar -

Published by timc1 almost 3 years ago

Bug fixes

  • Fixed an issue where spreading large lists of ActionImpls crashed kbar; rather, we should be looping through and pushing these objects to a new array instead of spreading.
kbar -

Published by timc1 almost 3 years ago

Missing export, need to somehow test/enforce this when adding new modules.

kbar -

Published by timc1 almost 3 years ago

New features

https://user-images.githubusercontent.com/12195101/140578203-3ca073a3-c534-40c4-8a5b-ad0ec5f68e4a.mp4

  • Nested searching is here! Search n levels of actions deep at ease, and speed. #105
  • Actions are internally reworked to support better testing and future extensibility. #96

Bug fixes

  • Escape key now properly propagates events only when kbar is open. #108

Miscellaneous

  • Tests are now set up 🥳
kbar -

Published by timc1 almost 3 years ago

Bug fixes

  • Fixed an issue where multiple key sequence shortcuts causes the trailing keys to appear in the input. #95
  • Fixed an issue where the mouse cursor captures the active index when not moved yet. #98
  • Fixes an edge case where if the first result item is a group name, hitting arrow up would cause the active index to be -1. #99
kbar -

Published by timc1 almost 3 years ago

Enhancements

  • We're back at our original API, with KBarResults by default virtualized. 100k results? No problem 💯
kbar -

Published by timc1 almost 3 years ago

Bug fixes

  • Fixed an issue with shortcuts registered with shift
  • Removed UI jump when scrollbar comes in and out of view
  • Removed active state wrapping
kbar -

Published by timc1 about 3 years ago

  • Export useMatches
kbar -

Published by timc1 about 3 years ago

Bug fixes

  • Clear search query on unmount
kbar -

Published by timc1 about 3 years ago

Enhancements

kbar -

Published by timc1 about 3 years ago

Bug fixes

kbar -

Published by timc1 about 3 years ago

Improvements

Bug fixes

Thanks @tommoor for the contributions 💯

kbar - v0.1.0-beta-6

Published by timc1 about 3 years ago

Improvements

  • External clicking to a nested action will now set focus back on the input
  • icon and subtitle are now part of the Action type – please see the example for usage.

Bug fixes

  • Fixed an issue calling perform on a nonexistent action
kbar - v0.1.0-beta.5

Published by timc1 about 3 years ago

Improvements

  • Some users had issues running kbar with our lib targeted at esnext. Now, kbar is a little more conservative, targeting es5.
kbar - v0.1.0-beta.4

Published by timc1 about 3 years ago

Improvements

We've reworked and improved the API to support all types of styling; classNames, inline styles, css-in-js. A few components have been moved around – please reference the updated Readme and documentation for usage.

  • Initial docs are now available – hit cmd/ctrl+k and search docs 📚
  • Keyboard shortcuts can be use immediately after one another without a delay; e.g. pressing h navigates to the home page, and immediately pressing g+d navigates to the docs.
  • A tiny bump animation is added when navigating between nested actions.