HandcartCactus / obsidian-remove-newlines

A plugin for Obsidian.md which removes newlines and blank lines from selected or pasted text.
https://handcartcactus.github.io/obsidian-remove-newlines/
MIT License
3 stars 0 forks source link
obsidian obsidian-md obsidian-plugin text-cleaning

Remove Newlines

Core Features

Usage

Paste without newlines

Pasting content into the Obsidian editor without newlines

Remove newlines from text selection

Removing newlines from a text selection in the Obsidian editor

Paste without blank lines

Pasting content into the Obsidian editor without blank lines

Remove blank lines from text selection

Removing blank lines from a text selection in the Obsidian editor

Change Settings

You can change how Remove Newlines handles word-break hyphenation and consecutive whitespace (when removing newlines) by visiting the plugin's settings tab. A screenshot of the settings menu.

Adding Hotkeys

There are no hotkeys for these actions by default, but you can create them in the settings modal under the "Hotkeys" section. A screenshot of the hotkey menu in the Obsidian settings modal

What's New?

1.0.5

1.0.4

1.0.3

Installing

Via the Community Plugin Manager

  1. Open the Community Plugins tab of your Obsidian's settings modal.
  2. Click the "Browse" button under "Community Plugins".
  3. Search for "Remove Newlines".
  4. Click "Install" on the plugin page, then "Enable".

Via URI/Browser

  1. Visit the official plugin page on Obsidian's plugin repository.
  2. Click "Install".
  3. Allow the site to open the obsidian link via Obsidian.
  4. Click "Install" on the plugin page, then "Enable".

Manually

  1. Download the latest release of the plugin.
  2. Create a remove-newlines folder in your vault's plugins/ directory: <YourVaultFolder>/.obsidian/plugins/remove-newlines
  3. Unzip the release file and copy over main.js, styles.css, and manifest.json into the remove-newlines/ folder you created in step 2.

Report Issues

If you encounter any issues, please report them on the issue tracker for this plugin.

Request Features

If you'd like to request a feature or have an idea for a new feature, please use the GitHub issue tracker.

Inspection

All relevant source code can be found in main.ts. To compile yourself from source:

  1. clone this repo
  2. cd to the project folder
  3. run npm run dev or npm run build
  4. perform a manual install