Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Add widget effect support for specifying location of text to insert.#234

Merged
gebner merged 2 commits intoleanprover:masterfrom
EdAyers:insert_text
Jan 2, 2021
Merged

Add widget effect support for specifying location of text to insert.#234
gebner merged 2 commits intoleanprover:masterfrom
EdAyers:insert_text

Conversation

@EdAyers
Copy link
Contributor

@EdAyers EdAyers commented Nov 15, 2020

See leanprover-community/lean#501
and https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/paste.20the.20goal.20at.20the.20cursor

This commit allows insert_text effects to include position information. An insert_text effect now has two extra fields:

{ "kind": "insert_text"
, "line": number // the line number to insert at, can be negative for relative line_type
, "column"?: number
, "file_name"?: string
, "insert_type": "absolute" | "relative" // whether line property is relative to cursor or absolute
, "text": string
}

@gebner gebner merged commit 03c9fec into leanprover:master Jan 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments