Skip to main content

Jupyterlab extension to save you the scrolling time from when you are at markdown file location and open editor and need to scroll to the exact place in the file where the content is. This extension opens the editor at the place where the content is

Project description

jupyterlab_edit_markdown_at_content_extension

GitHub Actions npm version PyPI version Total PyPI downloads JupyterLab 4 Brought To You By KOLOMOLO Donate PayPal

Jump straight from a rendered markdown file into the editor at the exact line you were reading. No more opening the editor and scrolling to find the content again - this extension opens the editor positioned right where the content is.

Features

  • Show Markdown Editor - right-click rendered content and pick "Show Markdown Editor"; the editor opens split-right with the cursor on the line that produced what you clicked. This replaces JupyterLab core's identically named command, which always opened at line 0
  • Reveal in Markdown Preview - right-click in the editor and pick "Reveal in Markdown Preview" to scroll the rendered preview to the block at the cursor
  • Synced scrolling - once the editor is opened from the preview, the two panes track each other: the pane you are scrolling drives, the other follows to the matching location. Toggle with the trackEditor setting (on by default) under Settings → Edit Markdown at Content

Usage

  • In a rendered Markdown Preview, right-click the content you are reading and choose Show Markdown Editor. The editor opens to the right with the cursor on that line, scrolled to the top
  • In the editor, right-click and choose Reveal in Markdown Preview to scroll the preview to the block at the cursor
  • With both panes open, scrolling the focused pane scrolls the other to the matching location

Settings

  • trackEditor (default true) - keep the editor and preview scrolled together once opened from the preview. Turn it off under Settings → Settings Editor → Edit Markdown at Content

Requirements

  • JupyterLab >= 4.0.0

Install

pip install jupyterlab_edit_markdown_at_content_extension

Uninstall

pip uninstall jupyterlab_edit_markdown_at_content_extension

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file jupyterlab_edit_markdown_at_content_extension-1.0.12.tar.gz.

File metadata

File hashes

Hashes for jupyterlab_edit_markdown_at_content_extension-1.0.12.tar.gz
Algorithm Hash digest
SHA256 22d37974b44c4d1a75e45a97d8644a762a65156be0126a041a4f802ee2422b52
MD5 a30bf6bcf5cd052bb9fa244e5be82f02
BLAKE2b-256 5e475727a289ee3a1371a8bdeaf5bf760f62a9f761957794fa79ebab53cbc09a

See more details on using hashes here.

File details

Details for the file jupyterlab_edit_markdown_at_content_extension-1.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_edit_markdown_at_content_extension-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 0592df0ad76f00f97740a0f03938431e7f30775ea0a64368cecd25ede9674075
MD5 3e591c5c15cd3045bbaf095edaac4308
BLAKE2b-256 89603739468e75a45ca7b97f51353aefd6422bd31a2a253d320d761cad9d6ed0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page