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

jupyter_multiselection-0.1.1-py2.py3-none-any.whl (65.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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