Skip to content

0.7.0

Latest

Choose a tag to compare

@github-actions github-actions released this 31 Oct 11:59
· 26 commits to main since this release

What's new

Autocompletion

Autocompletion now available for keys, values, properties and formulas.

  • Keys
    • Top-level keys: filters, formulas, properties, summaries, views.
    • Keys inside a view: type, name, filters, order, sort, groupBy, limit, summaries, plus the options of that view's type.
    • and, or and not under filters.
    • property and direction inside sort items and groupBy.
    • displayName under properties.
  • Values
    • View types, with their icons. View types added by other plugins are included.
    • View option values.
    • Sort directions (ASC, DESC)
    • Summary names: the built-in summaries for the property's type, and any custom summaries from the Base's top-level summaries.
  • Properties
    • Note properties from your vault, file properties (file.name, file.folder, ...) and formulas defined within the Base.
    • Suggested in order, sort, groupBy, and as keys under properties, a view's summaries and columnSize.
  • Formulas
    • Formulas in the top-level summaries section now get suggestions and function hints, using values.
    • Press Ctrl+Space on an empty formula value to see suggestions.

"Show suggestions" command

  • A new command that opens the suggestions at the cursor.
  • Assign it a hotkey, or add it to the mobile toolbar.

Autocompletion settings

New settings under Autocompletion → Autocompletion behaviour:

  • Accept suggestions using: Enter, Tab, or both.
  • When picking a key, insert:
    • Key and next line: for keys that hold other keys or a list, also adds a new, indented line, ready for the next item.
    • Key only: inserts just the key and : .
  • Offer suggestions after inserting a key: opens the suggestions again once a key has been inserted.

Changes

  • Autocompletion is now enabled on all devices by default, including phones.
    • The setting has been renamed, so your previous choice isn't carried over. If you had turned autocompletion off, turn it off again under Autocompletion.
  • The settings tab has been reorganised.

Fixes

  • The Base Source editor no longer breaks when it's moved into a pop-out window.
  • Suggestion popups and function hints are no longer cut off at the edges of the view.
  • With line wrapping off:
    • Text scrolled sideways no longer shows through the line numbers and side margins, and can't be clicked there.
    • The cursor stays clear of the line numbers and margins.
    • Dragging a mouse selection past the edge of the text scrolls the editor sideways.
  • Mobile: scrolling the editor no longer stops working on iOS when the text is scrolled sideways. Swiping from the edge to open a sidebar still works.
  • The search bar's keyboard shortcuts now ignores key presses while a different view is active.
  • Fixed a memory leak when formula autocompletion is initialised.