Cycle Line
pendingby Christopher Bussick
Change the line you are currently in by cycling through different options.
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:
-
Normal paragraph
I am a normal paragraph šš» -
Unordered list
- I am an unordered list š -
Checklist (unchecked)
- [ ] I am an unchecked checklist š·š» -
Checklist (checked)
- [x] I am a checked checklist ā -
Ordered list
1. I am an ordered list š¢
This plugin is intentionally lightweight and only adds two new commands for you to use:
- "Cycle forwards": This allows you to cycle through the options above forwards one at a time.
- "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:
-
Clone the repository
-
Install the dependencies:
npm install -
Start the esbuild watch mode, which will build the project:
npm run dev -
Make changes š·š»
-
You're done ā
Releasing new releases
- Update your
manifest.jsonwith your new version number, such as1.0.1, and the minimum Obsidian version required for your latest release. - Update your
versions.jsonfile 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.cssas 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 minorornpm version majorafter updatingminAppVersionmanually inmanifest.json. The command will bump version inmanifest.jsonandpackage.json, and add the entry for the new version toversions.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.