Skip to content

Instantly share code, notes, and snippets.

View EduardMe's full-sized avatar

Eduard Metzger EduardMe

View GitHub Profile
API

HTMLView

/**
* Available in v3.6.2
* Open a modal sheet above the main window with the given html code
@EduardMe
EduardMe / hidden-comments.json
Last active August 12, 2022 18:12
Hidden Comments (Theme)
{
"name": "Hidden Comments",
"style": "Light",
"author": {
"name": "antony.sklyar",
},
"editor": {
"backgroundColor": "#ffffff",
"altBackgroundColor": "#FAFFFF",
@EduardMe
EduardMe / Interfaces.swift
Last active July 15, 2022 19:09
NotePlan's JavaScript Interfaces (Swift)
// Editor
@objc protocol EditorJS: JSExport, ParagraphBridgeJS {
var note: NoteObject? { get }
var content: String? { get set }
var title: String? { get }
var type: String? { get }
var filename: String? { get }
var paragraphs: [ParagraphObject] { get set }
@EduardMe
EduardMe / NotePlan.md
Last active September 26, 2023 22:39
Global functions and variables for NotePlan
API

/**
* Note: Available from v3.3.2
* Returns the environment information:
*   .languageCode {String?}
*   .regionCode {String?}
@EduardMe
EduardMe / Clipboard.md
Last active January 31, 2022 22:03
Clipboard.md
API

Clipboard

/**
* Get or set the current text of the clipboard.
* @type {String}
API

NoteObject

/**
* Returns the relative path of the note (including the folder, like `folder/filename.txt`). 
* Can be also used to set the filename and NotePlan will rename it on disc (available from v3.6)
API

RangeObject

/**
* Character start index of the range.
* @type {Int}
API

CalendarItem

/**
* The ID of the event or reminder after it has been created by `Calendar.add(calendarItem)`. 
* The ID is not set in the original CalendarItem, you need to use the return value of `Calendar.add(calendarItem)` to get it.
API

Calendar

/**
* Get all available date units: "year", "month", "day", "hour", "minute", "second"
* @type {[String]}
API - CommandBar

CommandBar

/**
* Get or set the current text input placeholder (what you can read when no input is typed in) of the Command Bar.
* @type {String}