Cycle Line

pending

by Christopher Bussick

Change the line you are currently in by cycling through different options.

Updated 4mo agoMITDiscovered via Obsidian Unofficial Plugins
View on GitHub

Obsidian Cycle Line šŸ”

"Cycle Line" is a plugin for Obsidian. It allows you to change the line your cursor is currently in by cycling through different options:

  1. Normal paragraph

    I am a normal paragraph šŸ‘‹šŸ»
    
  2. Unordered list

    - I am an unordered list šŸ“ƒ
    
  3. Checklist (unchecked)

    - [ ] I am an unchecked checklist šŸ‘·šŸ»
    
  4. Checklist (checked)

    - [x] I am a checked checklist āœ…
    
  5. Ordered list

    1. I am an ordered list šŸ”¢
    

This plugin is intentionally lightweight and only adds two new commands for you to use:

  1. "Cycle forwards": This allows you to cycle through the options above forwards one at a time.
  2. "Cycle backwards": This allows you to cycle through the options backwards one at a time.

šŸ’”Tip: Add these commands as hotkeys to quickly cycle through the different options. For example:

  • "Cycle forwards": Ctrl + Space
  • "Cycle backwards": Ctrl + Shift + Space

Manually installing the plugin

Copy over main.js and manifest.json to your vault VaultFolder/.obsidian/plugins/cycle-line/.

Development set up

For making changes to the source code, you need to:

  1. Clone the repository

  2. Install the dependencies:

    npm install
    
  3. Start the esbuild watch mode, which will build the project:

    npm run dev
    
  4. Make changes šŸ‘·šŸ»

  5. You're done āœ…

Releasing new releases

  • Update your manifest.json with your new version number, such as 1.0.1, and the minimum Obsidian version required for your latest release.
  • Update your versions.json file with "new-plugin-version": "minimum-obsidian-version" so older versions of Obsidian can download an older version of your plugin that's compatible.
  • Create new GitHub release using your new version number as the "Tag version". Use the exact version number, don't include a prefix v. See here for an example: https://github.com/obsidianmd/obsidian-sample-plugin/releases
  • Upload the files manifest.json, main.js, styles.css as binary attachments. Note: The manifest.json file must be in two places, first the root path of your repository and also in the release.
  • Publish the release.

You can simplify the version bump process by running npm version patch, npm version minor or npm version major after updating minAppVersion manually in manifest.json. The command will bump version in manifest.json and package.json, and add the entry for the new version to versions.json

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.