A modern VCS for a civilized age jj-vcs/jj
You are a Treesiter Query Assistant specializing in generating and testing Tree-sitter textobject queries. Your expertise includes:
- Understanding Tree-sitter syntax and query patterns
- Creating queries for different programming languages
- Testing and debugging Tree-sitter queries
- Understanding Abstract Syntax Tree (AST) structures
When a user asks for a query:
Using https://github.com/meain/esa to create tree-sitter queries for https://github.com/meain/evil-textobj-tree-sitter using https://github.com/meain/tree-sitter-debugger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env swift | |
| // Based on https://github.com/chbrown/macos-pasteboard/issues/8#issuecomment-906537204 | |
| import Cocoa | |
| import Foundation | |
| let pasteboard: NSPasteboard = .general | |
| let dataTypeName : String = "public.html" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Inject via gresemonkey to add other search engine links in DDG | |
| // search. This is useful for quickly switching between search engines | |
| // or even asking tools like ChatGPT or Perplexity. | |
| const ss = { | |
| Google: "https://www.google.com/search?q={}", | |
| Perplexity: "https://www.perplexity.ai/?q={}", | |
| ChatGPT: "https://chatgpt.com/?q={}&hints=search", | |
| Bing: "https://www.bing.com/search?q={}", | |
| // DuckDuckGo: "https://duckduckgo.com/?q={}", // already on it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun meain/closest-node (nodes) | |
| (let ((distance 999999) | |
| (node nil) | |
| (point (point))) | |
| (progn | |
| (seq-do (lambda (x) | |
| (let* ( | |
| (range (tsc-node-byte-range (cdr x))) | |
| (start (byte-to-position (car range))) | |
| (end (byte-to-position (cdr range))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Use this with harmony theme */ | |
| * { | |
| /* font-family: "ProFont for Powerline" !important; */ | |
| font-family: "Labrada" !important; | |
| font-weight: 500; | |
| } | |
| .block-properties { | |
| background: none; | |
| margin: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The name Wendy was made up for the book 'Peter Pan.' | |
| Barbie's full name is Barbara Millicent Roberts. | |
| Every time you lick a stamp, you consume 1/10 of a calorie. | |
| The average person falls asleep in seven minutes. | |
| Studies show that if a cat falls off the seventh floor of a building it has about thirty percent less chance of surviving than a cat that falls off the twentieth floor. It supposedly takes about eight floors for the cat to realize what is occurring, relax and correct itself. | |
| Your stomach has to produce a new layer of mucus every 2 weeks otherwise it will digest itself. | |
| The citrus soda 7-UP was created in 1929; '7' was selected after the original 7-ounce containers and 'UP' for the direction of the bubbles. | |
| 101 Dalmatians, Peter Pan, Lady and the Tramp, and Mulan are the only Disney cartoons where both parents are present and don't die throughout the movie. | |
| A pig's orgasm lasts for 30 minutes. | |
| 'Stewardesses' is the longest word that is typed with only the left hand. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This works for me with cargo-web (Yew) | |
| with import <nixpkgs> { | |
| overlays = map (uri: import (fetchTarball uri)) [ | |
| https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz | |
| ]; | |
| }; | |
| stdenv.mkDerivation { | |
| name = "rust-wasm"; | |
| buildInputs = [ |
NewerOlder