Skip to content

rkaramc/markdown-toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slash Commands Example Extension

This is an example extension showcasing how to write Zed extensions.

Based on the example extension Extensions: Slash Commands in the Zed Docs.

Pre-requisites

Install Rust Toolchain:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Setup

git clone https://github.com/rkaramc/markdown-toolbox.git
cd ./markdown-toolbox/

Installation

  1. Open the command palette (cmd-shift-p or ctrl-shift-p).
  2. Launch zed: install dev extension
  3. Select the extension folder created above

Test

  • Open this README.md file
  • Check that a diagnostic is displayed against the last row of the table below: "Table: 2 cols x 2 rows"
  • Move cursor to the last row of the table below
  • Press ctrl-. to see available Code Actions: "Add row to table" and "Fix with Assistant"
  • Select "Add row to table": A new row is added
Header 1 Header 2
Row 1 Row 1
Row 2 Row 2

Rebuild

Rebuild to see these changes reflected:

  1. Open Zed Extensions (cmd-shift-x or ctrl-shift-x).
  2. Click Rebuild next to "Markdown Toolbox"

Troubleshooting / Logs

Documentation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages