{"id":15195353,"url":"https://github.com/willlewis/newline-adjuster","last_synced_at":"2026-03-07T04:03:40.363Z","repository":{"id":251076097,"uuid":"836271909","full_name":"WillLewis/newline-adjuster","owner":"WillLewis","description":"Jupyter \u003e Visual Studio \u003e Obsidian When copying code from .md files in Visual Studio into Obsidian, extra newlines are added, making notes super long. This simple plugin replaces \u003e=N number of multiple empty lines with 1 or 2 empty lines, with preview and undo functions.","archived":false,"fork":false,"pushed_at":"2024-08-18T22:02:25.000Z","size":377,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T14:41:42.908Z","etag":null,"topics":["jupyter","jupyter-notebook","obsidian","obsidian-plugin","visual-studio"],"latest_commit_sha":null,"homepage":"https://www.loom.com/share/5f29a5b93168400ba1476f0b8b88b07a?sid=bb19a67f-21a7-4c8a-a2ac-c7fbca6aca39","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WillLewis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-31T13:52:53.000Z","updated_at":"2024-08-18T22:01:50.000Z","dependencies_parsed_at":"2024-09-11T12:31:34.630Z","dependency_job_id":"b53875b4-f692-452e-ae93-4969f121e785","html_url":"https://github.com/WillLewis/newline-adjuster","commit_stats":null,"previous_names":["willlewis/obsidian-remove-empty-lines-plugin","willlewis/newline-adjuster"],"tags_count":3,"template":false,"template_full_name":"obsidianmd/obsidian-sample-plugin","purl":"pkg:github/WillLewis/newline-adjuster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillLewis%2Fnewline-adjuster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillLewis%2Fnewline-adjuster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillLewis%2Fnewline-adjuster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillLewis%2Fnewline-adjuster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WillLewis","download_url":"https://codeload.github.com/WillLewis/newline-adjuster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillLewis%2Fnewline-adjuster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30207393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T03:24:23.086Z","status":"ssl_error","status_checked_at":"2026-03-07T03:23:11.444Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jupyter","jupyter-notebook","obsidian","obsidian-plugin","visual-studio"],"created_at":"2024-09-27T23:21:45.630Z","updated_at":"2026-03-07T04:03:35.352Z","avatar_url":"https://github.com/WillLewis.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Newline Adjuster for Obsidian\n\nAn Obsidian plugin to replace multiple empty lines with configurable newlines, with preview and undo functionality.\n\n## Features\n\n- **Adjust Multiple Empty Lines**: Automatically replace multiple consecutive empty lines in a document with one or two newlines based on user settings.\n- **Preview Changes**: Preview the changes before applying them with a side-by-side comparison of the original and adjusted text.\n- **Undo Last Change**: Undo the last change made by the plugin.\n- **Configurable Threshold**: Set the number of consecutive empty lines to search for and replace.\n- **Configurable Replacement**: Choose whether to replace multiple empty lines with one newline or two newlines.\n\n## Video Demonstration\n\nWatch this video to see the Newline Adjuster plugin in action:\nhttps://www.loom.com/share/5f29a5b93168400ba1476f0b8b88b07a?sid=bb19a67f-21a7-4c8a-a2ac-c7fbca6aca39\n\n## Installation\n\n1. **Download and Build the Plugin**:\n    ```bash\n    git clone https://github.com/WillLewis/newline-adjuster.git\n    cd newline-adjuster\n    npm install\n    npm run build\n    ```\n\n2. **Copy to Your Obsidian Vault**:\n    ```bash\n    cp -r newline-adjuster /path/to/your/vault/.obsidian/plugins/\n    ```\n\n3. **Enable the Plugin**:\n    - Open Obsidian.\n    - Go to `Settings` \u003e `Community plugins`.\n    - Disable `Safe mode` if it is enabled.\n    - Find `Newline Adjuster` and enable it.\n\n## Usage\n\n### Ribbon Icons\n- Click the **dice** icon in the left sidebar to adjust multiple empty lines in the active document.\n- Click the **eye** icon to preview changes before applying them.\n- Click the **undo** icon to undo the last change made by the plugin.\n\n### Command Palette\n- Open the command palette (Ctrl+P or Cmd+P) and run the following commands:\n    - **Adjust Newlines**: Replace multiple empty lines in the active document.\n    - **Preview Changes**: Preview the changes before applying them.\n    - **Undo Last Change**: Undo the last change made by the plugin.\n\n### Settings\n\nYou can adjust the plugin settings to specify the number of consecutive empty lines to search for and replace, and whether to replace with one or two newlines.\n\n1. **Open Settings**:\n    - Click on the gear icon (⚙️) in the bottom left corner to open the settings menu.\n    - Navigate to `Community plugins` and find `Newline Adjuster`.\n\n2. **Adjust Consecutive Line Threshold**:\n    - In the settings tab, find the option `Consecutive Line Threshold`.\n    - Enter the number of consecutive empty lines you want the plugin to search for and replace. For example, enter `4` to replace any instance of 4 or more consecutive empty lines with a single empty line.\n\n3. **Set Replacement Newlines**:\n    - In the settings tab, find the option `Replace with Two Newlines`.\n    - Toggle the switch to choose whether to replace multiple empty lines with two newlines instead of one.\n\n    ![Settings Screenshot](settings-screenshot.png)\n\n## Development\n\n### Building the Plugin\nTo build the plugin from source, follow these steps:\n\n1. **Install Dependencies**:\n    ```bash\n    npm install\n    ```\n\n2. **Build the Plugin**:\n    ```bash\n    npm run build\n    ```\n\n### Contributing\n\nContributions are welcome! Please open an issue or submit a pull request with your improvements or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Author\n\nWill Lewis - willxemail@gmail.com [Webmocha](https://webmocha.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilllewis%2Fnewline-adjuster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilllewis%2Fnewline-adjuster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilllewis%2Fnewline-adjuster/lists"}