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
diff --git a/crates/settings/src/keymap_file.rs b/crates/settings/src/keymap_file.rs | |
index febe46c3be..faa418562c 100644 | |
--- a/crates/settings/src/keymap_file.rs | |
+++ b/crates/settings/src/keymap_file.rs | |
@@ -423,7 +423,9 @@ impl KeymapFile { | |
pub fn generate_json_schema_for_registered_actions(cx: &mut App) -> Value { | |
let mut generator = schemars::generate::SchemaSettings::draft07().into_generator(); | |
- let action_schemas = cx.action_schemas(&mut generator); | |
+ let mut action_schemas = cx.action_schemas(&mut generator); |
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
#!/bin/bash | |
# In retrospect I'd have preferred a python script, but hey this works. | |
# | |
# https://claude.ai/chat/baf4d2fd-ddbe-4852-9361-91c0a091f40c | |
# | |
# https://claude.site/artifacts/9b588d36-cf7e-4bf9-aed1-187adc0b8ef7 | |
# | |
# > How can I automatically delete my local git branches if the | |
# > associated github PR has been merged (the remote branch is on the |
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 python3 | |
# https://claude.site/artifacts/39d84a1a-23fa-498d-a31b-7ada990a85db | |
# https://claude.ai/chat/097db2b0-18a9-4845-9586-f2f4bb10ac8b | |
# | |
# > Please write a python script that git fetches only main without | |
# > switching to it. Then rebase the current branch atop main. All | |
# > the commits after the merge-base w.r.t main should get rebased. | |
# | |
# > Oh, on further thought explicitly querying the merge-base is |
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
#!/bin/bash | |
# Claude 3.5 sonnet | |
# Please write a bash script that checks that the repository is clean | |
# (modulo untracked files), then checks out a branch called dogfood | |
# and reset hards it to origin/main. Then read a file called dogfood | |
# which has a list of branch names separated by whitespace. Then | |
# merge in each branch, one at a time. Exit on failure, with nonzero | |
# exit status |
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 python3 | |
import subprocess | |
import sys | |
import tempfile | |
import os | |
import re | |
def run_git_command(command, error_message="Git command failed"): | |
""" |
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
// Look up a TreeSitter node based on a range from SCIP. | |
pub fn find_node<'a>( | |
start_node: tree_sitter::Node<'a>, | |
range: &Range<tree_sitter::Point>, | |
) -> Result<tree_sitter::Node<'a>> { | |
let mut cursor = start_node.walk(); | |
// Descend to the first leaf that touches the start of the range, and if the range is | |
// non-empty, extends beyond the start. | |
while cursor.goto_first_child_for_point(range.start).is_some() { |
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
04785022ed95f0901f865f17542134a3fe9c70cf034cb3eda5e170417372e2abd9e972c6462cfe9b68fa340db25ccaf6d50cc024da358d883e0e15e8cea5a2ec |
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
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
-- https://gist.github.com/mgsloan/7100f55c6ec12be8776a1a1c347cf963 | |
-- for a more complex version with better type inference. | |
-- | |
-- It was initially surprising to me that this one doesn't need the | |
-- "closed type family" trick to direct which instance is used. On | |
-- further thought, |
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
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
import Data.Proxy (Proxy(..)) |
NewerOlder