my dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

10 lines
250 B

  1. #!/usr/bin/env bash
  2. IFS=$'\t' read -r path line_no < <(
  3. rg -g '**/main.py' --line-number --no-heading --smart-case --color=never . "$DOTS_SCRAP_DIR" \
  4. | fzf \
  5. | sed -r 's/([^:]+)\:([0-9]+).*/\1\t\2/g'
  6. )
  7. nvim "$path" "+$line_no"