# My Typewriter Line ![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg) ![Open Issues](https://img.shields.io/github/issues-raw/dmo-code/myWriteLine?label=open%20issues) ![Stars](https://img.shields.io/github/stars/dmo-code/myWriteLine?style=social) ![Obsidian Plugin](https://img.shields.io/badge/Obsidian%20Plugin-Community-purple?logo=obsidian) My Typewriter Line is an Obsidian plugin that lets you set custom top and bottom scroll padding in the editor, so your active line always stays in focus—just like a typewriter. Perfect for distraction-free, focused writing. > Note: This plugin exclusively provides this single function (dynamic scroll padding adjustment via slider). ## Features - Set custom top and bottom scroll padding (in vh) via a single horizontal slider - Bottom value is automatically calculated (always 100 minus top) - Keeps your cursor/active line centered or at your preferred position while typing - Simple, distraction-free writing experience --- ## Installation ### From Obsidian Community Plugins 1. Open Obsidian and go to **Settings → Community plugins**. 2. Click on **Browse** and search for `My Typewriter Line`. 3. Click **Install** and then **Enable**. ### Manual Installation 1. Download the latest `main.js`, `manifest.json`, and `styles.css` from the Releases page. 2. Place these files in a new folder named `my-typewriter-line` inside your vault's `.obsidian/plugins/` directory. 3. Restart Obsidian and enable the plugin in **Settings → Community plugins**. --- ## Usage 1. Go to **Settings → My Typewriter Line**. 2. Adjust the **Top scroll position (vh)** using the horizontal slider. The **Bottom scroll position** is automatically set so that both always add up to 100. 3. Your active line will now stay at your preferred vertical position while you type. --- ## Setup ![Plugin Setup](img/setup.png) --- ## Support & Feedback - For issues or feature requests, open an issue on [GitHub](https://github.com/dmo-code/myWriteLine/issues). --- ## Developer Build Instructions If you want to build the plugin yourself: 1. Make sure you have [Node.js](https://nodejs.org/) installed. 2. Run `npm install`. 3. Run `npm run build` to produce the build in the `dist` folder. The `manifest.json` and `styles.css` are copied to `dist/` automatically. 4. Copy `main.js`, `manifest.json`, and `styles.css` from `dist/` to your Obsidian plugins folder: `.obsidian/plugins/my-typewriter-line`. --- ## License MIT