Skip to content

Instantly share code, notes, and snippets.

@yuyangchee98
yuyangchee98 / open-as-zed.md
Created November 4, 2024 08:03
How to create a Quick Action in macOS that allows you to right-click any folder and open it directly in Zed editor.

Create Zed Quick Action for macOS

How to create a Quick Action in macOS that allows you to right-click any folder and open it directly in Zed editor.

Quick Action Script

#!/bin/bash

# Get the selected folder path from Automator
@yuyangchee98
yuyangchee98 / read-only-logseq.js
Created March 4, 2024 13:27
Read only logseq
// ==UserScript==
// @name Logseq view only
// @namespace http://tampermonkey.net/
// @version 2024-03-02
// @description view only mode by disabling keyboard and mouse, set as chrome new tab page to always view your logseq journal
// @author You
// @match https://demo.logseq.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==