Skip to content

Commit

Permalink
I don't really care if something is a method or a singleton method
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 15, 2021
1 parent c457927 commit af94ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/kak-tree-grepper/rc/kak-tree-grepper.kak
Expand Up @@ -43,7 +43,7 @@ define-command -override -docstring "jump somewhere in a Ruby file's definition
SESSION=$6

# do the magic!
QUERY="(module name: (_) @module) (class name: (_) @class) (method name: (_) @method) (singleton_method name: (_) @singleton-method) (assignment left: (_) @assignment) (operator_assignment left: (_) @assignment)"
QUERY="(module name: (_) @module) (class name: (_) @class) (method name: (_) @method) (singleton_method name: (_) @method) (assignment left: (_) @assignment) (operator_assignment left: (_) @assignment)"

EDIT_LOCATION="$("$TREE_GREPPER" --language ruby "$QUERY" "$FILE" | fzf --with-nth 4,5 --nth 2,1 --delimiter=: --query "$FZF_QUERY" --select-1 | cut -d : -f 1-3 | tr : ' ')"
printf "evaluate-commands -client %s edit %s\n" "$CLIENT" "$EDIT_LOCATION" | indiekak -p "$SESSION"
Expand Down

0 comments on commit af94ea1

Please sign in to comment.