Code Editor Shortcuts

by Tim Hor
5
4
3
2
1
Score: 54/100

Description

Category: Coding & Technical Tools

The Code Editor Shortcuts plugin brings the familiar keyboard shortcuts from code editors like Visual Studio Code or Sublime Text to Obsidian. With this plugin, you can insert lines above and below, delete lines, duplicate lines, copy lines up and down, join lines, select lines, add cursors to selection ends, and more. The plugin also supports multiple cursors for most actions, making it easy to work with complex selections. You can customize the keyboard shortcuts in the settings panel and even configure auto-insertion of list prefixes when inserting new lines. With its extensive feature set and customizable hotkeys, this plugin is a must-have for any Obsidian user who wants to boost their productivity.

Reviews

No reviews yet.

Stats

435
stars
49,723
downloads
29
forks
1,681
days
42
days
1,081
days
14
total PRs
0
open PRs
0
closed PRs
14
merged PRs
77
total issues
28
open issues
49
closed issues
0
commits

Latest Version

3 years ago

Changelog

  • New feature: undo and redo have been made available as hotkeys which can be reassigned
  • Enhancement: undo/redo now batches actions for multiple cursors for insert line above, insert line below, and delete line
  • Bug fix: a line beginning at a trailing newline of a selection will be excluded from being duplicated/deleted or having a cursor added

README file from

Github

Code Editor Shortcuts

[!NOTE] This project is currently in a maintenance state. I do not have time to actively address any issues on a regular basis. Pull requests and any critical bugs will still be responded to.

This Obsidian plugin adds keyboard shortcuts (hotkeys) commonly found in code editors such as Visual Studio Code or Sublime Text.

Command Shortcut *
Insert line below Ctrl + Enter
Insert line above Ctrl + Shift + Enter
Delete line Ctrl + Shift + K
Duplicate line Ctrl + Shift + D
Copy line up Alt + Shift + Up
Copy line down Alt + Shift + Down
Join line below to current line Ctrl + J
Select line (repeat to keep expanding selection) Ctrl + L
Add cursors to selection ends Alt + Shift + I
Select word or next occurrence of selection Ctrl + D
Select all occurrences of selection Ctrl + Shift + L
Move cursor up Not set
Move cursor down Not set
Move cursor left Not set
Move cursor right Not set
Go to previous word Not set
Go to next word Not set
Go to start of line Not set
Go to end of line Not set
Go to previous line Not set
Go to next line Not set
Go to first line Not set
Go to last line Not set
Go to line number Not set
Delete to start of line Not set
Delete to end of line Not set
Transform selection to uppercase Not set
Transform selection to lowercase Not set
Transform selection to title case Not set
Toggle case of selection Not set
Expand selection to brackets Not set
Expand selection to quotes Not set
Expand selection to quotes or brackets Not set
Insert cursor above Not set
Insert cursor below Not set
Go to next heading Not set
Go to previous heading Not set
Toggle line numbers Not set
Indent using tabs Not set
Indent using spaces Not set
Undo Not set
Redo Not set

* On macOS, replace Ctrl with Cmd and Alt with Opt

Important notes

  • Ctrl + Enter for 'Insert line below' may conflict with the default shortcut for Open link under cursor in new tab; changing/removing one of the bindings is recommended.
  • Ctrl + L for 'Select line' may conflict with the default shortcut for Toggle checkbox status; changing/removing one of the bindings is recommended.
  • Ctrl + D for 'Select word or next occurrence of selection' will behave differently depending on how the initial selection was made. If it was also done via Ctrl + D, the command will only look for the entire word in subsequent matches. However, if the selection was done by hand, it will search within words as well.
  • 'Toggle case of selection' will cycle between uppercase, lowercase and title case.
  • If you are looking for the Alt + Up and Alt + Down shortcuts from VS Code, you can assign those hotkeys to Obsidian's built in actions "Move line up" and "Move line down".

Multiple Cursors

Most* of these shortcuts work with multiple cursors. However, undo and redo will not work intuitively in Live Preview – actions will be handled individually for each cursor, rather than grouped together. Work is underway to incrementally migrate them to the newer Obsidian editor API so they are grouped, and has been completed for the following:

  • Insert line above
  • Insert line below
  • Delete line

As a workaround, you can also switch back to the legacy editor in Settings as all actions will be grouped in that case.

* These shortcuts currently do not support multiple cursors:

  • Expand selection to quotes or brackets
  • Go to next/previous heading

Installing the plugin

Refer to the official installation instructions for third-party plugins here and search for the plugin Code Editor Shortcuts.

Configuring settings

Go to Settings → Hotkeys to customise the keyboard shortcut for each action.

The following behaviour can be configured via the settings tab for this plugin:

Setting Description
Auto insert list prefix Automatically insert list prefix when inserting a line above or below

Contributing

Contributions and suggestions are welcome – feel free to open an issue or raise a pull request.

To get started:

  • Switch to the specified Node version: nvm use
  • Install dependencies: yarn install
  • Run the extension: yarn start
  • Run tests: yarn test (use --watch for watch mode)

Support

This plugin is completely free to use, but if you'd like to say thanks, consider buying me a coffee! 😄

ko-fi

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Wrap with shortcuts
4 years ago by Manic Chuang
Wrap selected text in custom tags with shortcuts.
Global Hotkeys
4 years ago by Marc Jessome
Global hotkey support for Obsidian.md
ObsidianTweaks
4 years ago by Jeppe Klitgaard
A plugin that implements a number of tweaks that should've been native to Obsidian.
Shortcut Launcher
4 years ago by MacStories
Trigger shortcuts in Apple's Shortcuts app from Obsidian with custom commands.
Better Command Palette
4 years ago by Alex Bieg
A better command palette for obsidian
Marjdown shortcuts
4 years ago by Jules Guesnon
🪨 Obsidian plugin that allows to write markdown from commands
Hotkeys Chords
4 years ago by Dario Balboni
Search Everywhere
4 years ago by Mom0
Obsidian Search Everywhere Plugin
Sequence Hotkeys
4 years ago by Ruan Moolman
Obsidian plugin to support a sequenced of keyboard shortcuts to run commands.
Text Expander JS
4 years ago by Jonathan Heard
Obsidian plugin: Type text shortcuts that expand into javascript generated text.
Open File by Magic Date
4 years ago by simplgy
Script Launcher
4 years ago by Alessandro Ruggiero
An Obsidian plugin that allows you to easily run scripts written in any language directly from the app
Keyboard Analyzer
4 years ago by cogscides
Obsidian plugin to display command hotkeys on a visible keyboard layout
Chorded Hotkeys
3 years ago by Trey Connor Meyers
Type multiple letters at the same time to trigger text insertion, template insertion, or command execution.
Keyshots
3 years ago by KrazyManJ
🔮📝 Obsidian plugin that adds classic hotkey/shortcuts commands from popular IDEs like Visual Studio Code or JetBrains Family.
Cycle In Sidebar
3 years ago by Houcheng
Cycle through tabs of left/ right sidebar panel
Callout Integrator
3 years ago by
A plugin for Obsidian to allow the integration of long blocks of text into callouts.
Quickly
3 years ago by Sparsh Yadav
Quick capture to obsidian note
Quick Links
3 years ago by Ian Fisher
Obsidian plugin to create quick link shortcuts
Custom list character
3 years ago by Lilian POULIQUEN
Custom list character is a simple plugin allowing you to choose which character to use when making bullet lists in Obsidian.
Harpoon
3 years ago by mask(developermask)
Next Link
3 years ago by Juan Luque
Font Size Adjuster
2 years ago by Ryota Ushio
An Obsidian.md plugin to adjust font size via commands.
Livecodes Playground
2 years ago by @gapmiss
Open-source client-side code editor plugin for Obsidian.md - powered by LiveCodes.io
Note Toolbar
2 years ago by Chris Gurney
Flexible, context-aware toolbars for your notes in Obsidian.
Select word
2 years ago by Connor Espino
Vimium
2 years ago by Karsten Finderup Pedersen
Interact with elements using keyboard shortcuts in the spirit of Vim.
Rich Text Editor Shortcuts
2 years ago by Joshua Wootonn
Create and toggle checkboxes, paste links wrapping your current selection, and toggle underline without leaving the keyboard.
Recent Tab Switcher
2 years ago by Samuel Ang
Recent Tab Switcher Plugin for Obsidian.
Backtick text selector
2 years ago by Ram Rachum
Obsidian plugin for selecting text in backticks
Hotkeys++
6 years ago by Argentina Ortega Sainz
Adds hotkeys to toggle todos, ordered/unordered lists and blockquotes in Obsidian
Leader Hotkeys
5 years ago by Tony Grosinger
Use a leader-key (tmux style) for hotkeys in Obsidian.md
Jump to link
6 years ago by MrJackphil
Quick jump between links using hotkeys
Shortcuts extender
6 years ago by kitchenrunner
Plugin for Obsidian: Use shortcuts for input special symbols and changing level of headings without language switching
Julian Date
5 years ago by thek3nger
Plugin for Obsidian to add the current Julian Date for astronomical observations
Min3ditorHotkeys
5 years ago by Davor Sauer
Obsidian plugin adding minimal editor hotkeys
Hotkeys for Bookmarks
5 years ago by Vinzent
Hotkeys for specific files
5 years ago by Vinzent
Footnote Shortcut
5 years ago by Alexis Rondeau, Micha Brugger
Makes creating footnotes in Obsidian more fun!
Format Hotkeys
5 years ago by Ansel Santosa
Google Docs style formatting hotkeys for Obsidian
Hotkey Helper
5 years ago by PJ Eby
Easily see and access any Obsidian plugin's options pane or hotkey assignments (including conflicts) from the Community Plugins tab
Hotkeys for templates
5 years ago by Vinzent
Word Splitting for Simplified Chinese in Edit Mode and Vim Mode
5 years ago by AidenLx
A patch for Obsidian's built-in CodeMirror Editor to support Simplified Chinese word splitting Obsidian内置编辑器的(简体)中文分词支持
Auto pair chinese symbol
5 years ago by renmu123
中文符号自动补齐
Editor Commands Remap
5 years ago by cactus5
Obsidian plugin to map hotkeys to editor commands
Key Promoter
5 years ago by Johannes Theiner
Learn keyboard shortcuts by showing them when using the mouse
Lumberjack
5 years ago by ryanjamurphy
Log your thoughts! Lumberjack adds URL commands to help you axe inefficiency and get right to writing.
Editing Mode Hotkey
2 years ago by Signynt
Obsidian plugin to change the default editing mode (between Live Preview and Source) using a command or hotkey
Cursor Bridge
2 years ago by Adam Cloud
Seamlessly bridge Obsidian and Cursor, the AI-powered code editor. Elevate your coding workflow by opening notes directly in Cursor, bringing the power of AI to your knowledge base.
FastForwardLink
a year ago by Idan Liberman
FastForwardLink Obsidian.md Plugin
Hanko
a year ago by Telehakke
Obsidian plugin.
Hotstrings
a year ago by wakywayne
Quick Nav
a year ago by exoticknight
Enhance your editing experience by unleashing the hidden power of shortcuts.
Duplicate line
a year ago by Marcin Sztolcman
Plugin for Obsidian: duplicate current line, or selection.
Custom Commands
a year ago by Staaaaaaaaaan
Create custom commands to be executed in the command palette, and by hotkey. Currently supports opening specific notes, creating notes, inserting snippets, and executing sequences of commands.
Vim Marker Sharpener
a year ago by Artem Dvoryadkin
Text formatting commands in Vim mode. Supports applying styles (bold, italic, etc.). Works correctly in visual mode with selected text.
Ace Code Editor
a year ago by RavenHogWarts
An enhanced code editor using Ace editor
Heading Helper
10 months ago by Siddhartha Khuntia
Hyperlink Remover
10 months ago by Daniel Agafonov
Easily remove hyperlinks and wikilinks from selected text or the entire note.
Calculite
10 months ago by Holo
Standard calculator plugin for Obsidian.
Symbol linking
10 months ago by Evan Bonsignori ; Mara-Li
Adds ability to link with any trigger in Obsidian. Each trigger can limit linking to specific folders or file.
LLM Shortcut
9 months ago by Viktor Chernodub
A plugin for Obsidian that provides a way to create shortcuts for commands powered by LLM capabilities.
Code Blocks commands
8 months ago by dragonish
Provide commands to insert code blocks with markup, and support triggering commands with backticks.
Open in Cursor
8 months ago by awaken233
An Obsidian plugin to open files in Cursor IDE or other VSCode-based editors (VSCode, Kiro, etc.) with automatic cursor position jumping. 一个可以在 Cursor IDE 或其他类 VSCode 编辑器中打开文件并自动跳转光标位置的 Obsidian 插件。
Custom Comments
8 months ago by Jack Chronicle
Adds a method to create custom methods to enclose comments
Ghost Text
8 months ago by lawrencefeng17
Note Codes
8 months ago by Ezhik
Reference your Obsidian notes from anywhere with simple 4-character codes.
HOME key
8 months ago by shichishima
Obsidian Plugin to move cursor to beginning of text, considering Markdown heading characters.
Capitaliser
2 months ago by Emanuel Oliveira
Cycle text capitalisation (lowercase, Capitalise Each Word, UPPERCASE).
Expand Selection
a month ago by Alex Tait
Expands the editor selection to lines, sections, or the entire note for convenience on mobile.