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.14.tar.gz.

File metadata

File hashes

Hashes for jupyterlab_edit_markdown_at_content_extension-1.0.14.tar.gz
Algorithm Hash digest
SHA256 00fde473e842be7dbab397fc7b285b21d7a4346352f7132fe25fca2bea59af04
MD5 ebc690c947c2243760961dc37cad3dc7
BLAKE2b-256 95842ade716a59bb96ec540afa29eb066d4461e012d25a331578f3dd6e614a14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyterlab_edit_markdown_at_content_extension-1.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 0f2cd345bc0e9651f33a4fafbf80ca099692768c0799fc393532ac3284fe8f8e
MD5 e8b12e45849e01e4e6520a175e5d21e1
BLAKE2b-256 3eae764581f18579fb2928601b67480cdb9aa58d018af29850577da7f210ded4

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