开发者 | iandunn |
---|---|
更新时间 | 2020年12月9日 21:39 |
捐献地址: | 去捐款 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 5.6 |
版权: | GPLv2 |
g
or ` -- the backtick character, usually located above the tab key -- to bring up the interface, and then start typing part of the name of any screen, post, page, etc. As you type, you'll be shown a list of matching links. Use the Up
andDown
keys to move between them, and pressEnter
to open one.
https://www.youtube.com/watch?v=60iVn94hEIE
This was inspired by Ubuntu's Dash and HUD, and is also similar to the Spotlight feature in OS X.
g
or the ` key, but nothing happensThere are a few likely causes for this:
tab
key and left of the1
key. You can also try using theg
key instead.There are a few reasons why you may not see all content.
qni_content_index_params
filter.There isn't a settings page, but all of the internal options can be modified via the qni_options
filter. If you're not familiar with using filters, you can learn more about them from the WordPress Plugin Developer's Handbook, and then implement them in a functionality plugin that you write, or via a plugin like Functionality.
The values of the keys must correspond to JavaScript keyCode
s, and the plugin doesn't currently support using combinations. Be careful to choose keyCode
s which are consistent across browsers.
Unfortunately modern JavaScript makes this more difficult than editing PHP, but there are instructions in the GitHub repository.
I've done my best to ensure that it is, but just in case I missed anything I also offer a security bounty for any vulnerabilities that can be found and privately disclosed in any of my plugins.
type
field added in v1.0.g
key now also opens the interface, in addition to the ` (backtick) key.['shortcuts']['close-interface']
item in the array passed to the qni_options
filter has been removed. QNI now uses the Modal
component provided by Gutenberg, which only uses the Escape
key to close it.qni_template_path
and qni_template_content
filters have been removed, and files like qni-interface.php
in your theme will no longer be used. This is because the plugin now declares the templates in React. There aren't currently any plans to make them customizable.