Kill and Yank

by INOUE Takuya
5
4
3
2
1
Score: 59/100

Description

Category: Coding & Technical Tools

The Kill and Yank plugin is a game-changer for Obsidian users who are familiar with the kill and yank functionality in Emacs. With this plugin, you can easily cut and paste text using keyboard shortcuts that will feel natural to anyone who has used these commands before. The kill line feature cuts from your cursor position to the end of the line, while the kill region feature cuts whatever selection you've made. You can then use the yank command to paste back what you've cut, and set mark allows you to toggle the start position of your selection. This plugin is a great addition for anyone who wants to streamline their editing workflow in Obsidian.

Reviews

No reviews yet.

Stats

15
stars
4,187
downloads
2
forks
1,305
days
1
days
21
days
54
total PRs
0
open PRs
0
closed PRs
54
merged PRs
3
total issues
1
open issues
2
closed issues
75
commits

Latest Version

21 days ago

Changelog

What's Changed

New Contributors

Full Changelog: https://github.com/inouetakuya/obsidian-kill-and-yank/compare/1.2.0...1.2.1

README file from

Github

Obsidian Kill and Yank

Obsidian plugin to enable kill and yank (like Emacs) in the editor.

Obsidian https://obsidian.md

Usage

Kill line

Cut from the cursor position to the end of the line.

default: Control + k

Kill region

Cut the selection.

default: Control + w

Yank

Paste kill ring.

default: Control + y

Set mark

Toggle the start position of the selection.

default: Control + Space

Note

This plugin enables kill and yank in the editor, but does not enable kill and yank in the title.

If you wish to continue to use kill and yank in the title, change the default key mappings.

Development

This project uses pnpm. The required version is pinned in the packageManager field of package.json and in mise.toml.

Setup

pnpm install

Format

pnpm format:check
pnpm format:fix

Lint

pnpm lint
pnpm lint:fix

Build

pnpm build

Release

main is protected and only accepts changes through a pull request, so the version bump goes through one as well. The release tag is created afterwards, on the merge commit.

Create a branch:

git switch --create bump-up-to-1.3.0

Bump the version:

pnpm version minor --no-git-tag-version

patch, minor, major and an explicit version number such as 1.3.0 are all accepted.

This runs version-bump.mjs through the version lifecycle script, which writes the new version into manifest.json and versions.json. --no-git-tag-version skips the commit and the tag that pnpm version would otherwise create, because the tag has to point at the merge commit on main.

Commit the change and open a pull request:

git add manifest.json versions.json package.json
git commit --message "1.3.0"
git push --set-upstream origin bump-up-to-1.3.0
gh pr create --title "1.3.0" --body "" --assignee "@me"

Merge the pull request with a merge commit once CI passes. Do not squash it, so that the history stays accurate.

Tag the merge commit on main and push the tag to trigger the release workflow:

git switch main
git pull
git tag --annotate 1.3.0 --message "1.3.0"
git push origin 1.3.0

The tag must match the version in manifest.json exactly, with no v prefix. Both the release workflow and the Obsidian community plugin flow rely on this.

The workflow publishes the release straight away, without a draft step. Anyone who installed the plugin from the community plugin list receives the update as soon as it is published.

Manually installing this plugin

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

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Asciidoctor editor
2 years ago by dzruyk
Obsidian asciidoc editor plugin
Auto Split
5 years ago by James Sartelle
Open notes with side-by-side editor & preview
Better Word Count
6 years ago by Luke Leppan
Counts the words of selected text in the editor.
Composition Mode
a month ago by kazys varnelis
Composition-mode-obsidian-plugin
CookLang Editor
5 years ago by death_au/cooklang
Edit and display Cooklang recipes in Obsidian
Daily Notes Editor
4 years ago by boninall
A plugin for you to edit a bunch of daily notes in one page(inline), which works similar to Roam Research's default daily note view.
Editor Autofocus
3 years ago by Mgussekloo
Emoji Toolbar
6 years ago by oliveryh
An Obsidian plugin to quickly add emojis into your notes
Font Size Adjuster
3 years ago by Ryota Ushio
An Obsidian.md plugin to adjust font size via commands.
Helix Keybindings
4 months ago by obsidian-helix
Use Helix keybindings inside Obsidian.md
Image in Editor
5 years ago by Ozan Tellioglu
This Obsidian plugin to view Images, Transclusions, iFrames and PDF Files within the Editor without a necessity to switch to Preview.
MathLive in Editor Mode
2 years ago by MizarZh
MathLive input in editor mode.
Min3ditorHotkeys
6 years ago by Davor Sauer
Obsidian plugin adding minimal editor hotkeys
Power Editor
a month ago by Power Plugins
Format any note from a toolbar, selection bubble, or slash menu: WYSIWYG editing, block drag handles, image resizing, dictation, and AI edits, all staying plain Markdown.
Relative Line Numbers
6 years ago by Nadav Spiegelman
Source Mode Styling
7 months ago by Chris Howard
Obsidian plugin. Provides a customisable raw look in source mode using a monospace font to clearly differentiate from Live Preview.
Typewriter Scroll
6 years ago by death_au
Typewriter Scroll Obsidian Plugin
Vim Yank Highlight
3 years ago by Aleksey Rowan
Highlight yanked text in Vim mode. Enjoy that subtle animation you've missed so much.