0.1.56a #145
RobertCraigie
announced in
Announcements
0.1.56a
#145
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Breaking changes
Hint callback execution
The
actionandpickcallbacks are now executed in the main process, not the content process. This change was made so that you can access theglideAPI in the callbacks, making them much more useful.For example, only selecting the hint with the largest width:
For the
actionfunction:Relative path resolution
Previously calls to APIs like
glide.fs.read()with relative paths would resolve relative to the config file instead of the current file.For example:
0.1.55a would read
config>/data.json0.1.56a will now read
config>/foo/bar/data.jsonCustom hint label generators
You can now override label generation for hints to use whatever strategy you'd like.
For example, a very naive implementation for using the first two characters of the element text as the label:
Changes
glide.unstable.include()callsglide.modes.list()glide.commandline.is_active()<CR>keymapping to accept the hint with typed labelDOM.create_element()in the content processglide.o.switch_mode_on_focusdisabling certain non-focus mode changes<leader>-,<<,<and other similar sequencesglide.styles.remove()calls with the same IDglide.styles.add()erroneously adding duplicate stylesURL.canParse()GlideProcessErrornot being exposed to the sandboxglide.hints.show()withauto_activate: truenot respectingaction: () => ...render()functions from being needlessly duplicated, and breaking referencesThis discussion was created from the release 0.1.56a.
All reactions