Skip to main content

A nbextension to select occurences of the currently selected text

Project description

Multiselection

PyPI

This nbextension allows to select occurences of the selected text in the currently active cell.

Installation

First, install jupyter_multiselection using pip:

pip install jupyter-multiselection

Next, install the nbextension using jupyter:

jupyter nbextension install --py jupyter_multiselection

Finally, enable the nbextension:

jupyter nbextension enable multiselection/multiselection

Usage

Select a word or section of text in edit mode and other occurences of the selection will be highlighted.

Highlight

Use the select next hotkey (default Ctrl+m) to select the next occurence of the selection. To select all occurences use the select all hotkey (default: 'Ctrl+Alt+m').

Highlight

Options

  • highlight - If true, all occurences of the selected word will be highlighted (default: true).
  • wrapcell - If true, after the last occurence in the cell the next selection will start from the beginning (default: true).
  • nextHotkey - Hotkey to select the next occurence (default: Ctrl+m).
  • allHotkey - Hotkey to select all occurences (default: Ctrl+Alt+m).

TODO

  • Multiselection across all cells
  • Split multi-line selection into multiple selections

History

  • @chdudek (Feb 29 2020): Inital release

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

jupyter_multiselection-0.1.1.tar.gz (64.6 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page