Nova

Extensions


Readme

Duplicate Text for Nova

This command brings duplicate text functionality which you may be used to in other editors to Nova.

Features

  • When nothing is selected, the whole line is duplicated and the cursor is placed on the lower line
  • When text is selected, the selection is duplicated and the new copy is selected
  • Works with multiple selections
  • Works in any document

Invoking Duplicate Text

Key Binding

By default, you can invoke Duplicate Text with the key command cmd-shift-d. If you'd like to remap the command to a different key combination, open up the Key Bindings tab in the Nova -> Preferences... menu, search for duplicate text, and edit the key command to your preference.

Menu Item

This extension adds a Duplicate Text command to the Editor menu. It is also available in the Command Palette. Just open the Command Palette (cmd-shift-p) and start typing duplicate text.

Installing

In Nova, select the Extensions -> Extensions Library... menu and then search for and install Duplicate Text.


Changelog

Version 1.0

Initial release

Version 1.0.1

Added MIT License


License

MIT License Copyright © 2020 Michael Bester michael@kimili.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.