2024-Q4

269 bookmarks
Custom sorting
Fuzzy search through files in Visual Studio Code
Fuzzy search through files in Visual Studio Code
shell: #!/usr/bin/env bash ## # Interactive search. # [[ -n $1 ]] && cd "$1" # go to provided folder or noop export FZF_DEFAULT_COMMAND="rg --column --line-number --no-heading --color=always -- ''" selected=$( fzf \ --ansi \ --delimiter : \ --bind "f12:execute-silent:(code -g $PWD/{1..3})" \ --preview-window 'up,60%,border-bottom,+{2}+3/3,~3' \ --preview 'bat -f --highlight-line={2} {1}' | cut -d":" -f1,2,3 ) [[ -n $selected ]] && code -g "$PWD"/"$selected" For example, on macOS, you can copy the script, then run this in your terminal: pbpaste > ~/bin/rgf # ~/bin is in my $PATH chmod +x ~/bin/rgf
·vladimirzdrazil.com·
Fuzzy search through files in Visual Studio Code
Examples - OpenAI API
Examples - OpenAI API
You will be provided with Python code, and your task is to calculate its time complexity.
·platform.openai.com·
Examples - OpenAI API
skrider/dotfiles
skrider/dotfiles
Interesting aliases for searching with fd and fzf.
·github.com·
skrider/dotfiles