billy-bg / Change-Tab-Key-Functionality

A simple Obsidian plugin that changes the default behaviour of the tab key from 'indent' to 'move the cursor to the end of the line'.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change Tab Key Functionality Obsidian Plugin

A simple plugin that changes the tab key functionality in Obsidian from indenting the current line/paragraph (default) to moving the cursor to the end of the line (command+right arrow; new functionality). This is useful when using templates and html tags in your documents. This plugin is designed to work with the Templater Fix Plugin. For example, you can insert a template to make your text red, bold, underlined and highlighted green (<span style="background:#00FF00A8"><font color="#ea3323"><b><u>example text</u></b></font></span>), with the Templater Fix Plugin, your cursor will automatically be placed in the middle of the HTML tags, you can then write your desired text and use the tab key to move the cursor to the end of the line and quickly continue writing without disrupting your workflow.

This plugin is also designed to continue to allow other plugins to use the tab key for their own functionality. For example, the Latex Suite Plugin will still allow you to use the tab key to navigate between latex commands in math regions and to expand non-auto snippets outside of math regions.

Instructions:

  1. Drag the "Change-Tab-Key-Functionality-Plugin" folder into your ".obsidian>plugins" folder. Note: command+shift+. to show hidden files on Mac
  2. Enable the plugin in Obsidian's settings.

Future Updates:

If requested, i may be able to add the following features:

  • Ability to remap the tab key to your own desired custom functionality in Obsidian's settings.

Please let me know if you have any questions or suggestions. I hope this plugin helps you out!

About

A simple Obsidian plugin that changes the default behaviour of the tab key from 'indent' to 'move the cursor to the end of the line'.

License:MIT License


Languages

Language:JavaScript 100.0%