A huge thank you to @pjeby
for Pane Relief and for all his help with testing the new per-tab history!
Ctrl/Cmd+Alt+Shift+Enter
)Fixed copying and pasting using the context menu.
file:///
protocols.leaf.view
can now never be null.Suggest
component's DOM structure. If your plugin is attaching itself to core Suggest components or mimicking the Suggest component structure, it will likely be impacted.
- .suggestion-item
- .suggestion-content
- .suggestion-title
- .suggestion-note (optional)
- .suggestion-aux
- .suggestion-hotkey (optional)
- .suggestion-flair (optional)
workspace.getActiveFile
has been updated to now return the file of the most recently active FileView. This change should improve compatibility for custom views now that sidebar views are focusable. If you were previously using workspace.getMostRecentlyActiveFile
for v0.15.X compatibility, please switch back to getActiveFile
.body:not(.native-scrollbars)
for any scrollbar styling.Escape
when not focused on a pane now focuses the last active editable pane.Node
(like Element
, HTMLElement
, etc) and all derivatives of UIEvent
(like MouseEvent
, KeyboardEvent
, etc)
element.doc
or event.doc
) and window (element.win
or event.win
).element.instanceOf(HTMLElement)
or event.instanceOf(MouseEvent)
to perform instanceof checks without having to worry about cross-window constructors.HTMLElement
now also has a onWindowMigrated
hook that can be used to monitor when the element gets attached to different windows. This can be used to re-initialize views that depend on window globals.window-open
and window-close
.MenuItem
now has a new method setSection(string)
. Items from the same section will be grouped together, in the order they were defined or first used. The default section (empty string) will contain all legacy/plugin/unspecified menu items and is usually put into a specific spot of the sort order (for example, before the danger items). Inspect the DOM to see existing sections' data-section
.MenuItem
directly - please use Menu.addItem
instead.View
, we've deprecated the onHeaderMenu
and onMoreOptionsMenu
in favor of a single onPaneMenu
function with a source
parameter. This new method will be used for both the header menu (right clicking on a tab header in the sidebar) and the more options menu (three dot menu).Esc
with a sidebar view focused will refocus your last note.mod-active
class to the tab headers when the view is active.Ctrl/Cmd
-clicking on the active file in the File Explorer will open it in a split instead of focusing the explorer.#
) that appears in an unfocused editor is now hidden.Workspace
functions whose behavior conflicted with user expectations..is-focused
class to the window body of the currently focused window.Enter
/ Shift+Enter
to select.Escape
when there's a highlight in the editor (from search or navigation) causes the highlight to be removed, instead of requiring a mouse click.Ctrl+N/P
can now be used to navigate suggestion results similar to Up/Down
arrow keys.minAppVersion
to 0.15.0.stat
on directories gives NaN
.eval at anonymous
.contain
property.