Skip to content

Instantly share code, notes, and snippets.

@therealparmesh
therealparmesh / zed-vim-mode-cheatsheet.md
Created October 24, 2024 14:38
Zed vim mode cheatsheet

Zed Vim Mode Cheat Sheet

Zed's Vim mode replicates familiar Vim behavior while integrating modern features like semantic navigation and multiple cursors. This cheat sheet summarizes essential shortcuts and settings to help you navigate and edit code efficiently in Zed.


Enabling/Disabling Vim Mode

  • Enable/Disable Vim Mode: Open the command palette and use Toggle Vim Mode.
  • This updates your user settings: "vim_mode": true or false.
@EpixMan
EpixMan / Jotoba_Anki.py
Last active August 4, 2022 22:20
This python code can link Jotoba to Anki using Anki connect addon to make creating cards much easier
'''
notes:
1- Make a deck and change it name in the code, make sure anki is running and anki connect add on is already installed
2- You might need to install requests in python using "pip install requests" without quotes
4- Make sure to create a note type, make fields same as fields variable, change modelname to be your note type
3- You just past the kanji in the python code and it will automatically import the
A- the Kanji
B-the Onyomi/Kunyomi

Rust Error Handling Cheatsheet - Result handling functions

Introduction to Rust error handling

Rust error handling is nice but obligatory. Which makes it sometimes plenty of code.

Functions return values of type Result that is "enumeration". In Rust enumeration means complex value that has alternatives and that alternative is shown with a tag.

Result is defined as Ok or Err. The definition is generic, and both alternatives have