Skip to content

Instantly share code, notes, and snippets.

@thanharrow
thanharrow / git_fzf.fish
Last active July 30, 2023 16:14
git_fzf.fish
# https://brettterpstra.com/2021/11/25/git-better-with-fzf-and-fish/
# @ttscoff's version of @max-sixty's revision of @aluxian's
# fish translation of @junegunn's fzf git keybindings
# https://gist.github.com/junegunn/8b572b8d4b5eddd8b85e5f4d40f17236
# https://gist.github.com/aluxian/9c6f97557b7971c32fdff2f2b1da8209
#
# 2021-12-23:
# - Fix hash returned by *git_log being truncated
# - Allow multiple selections for git_status
# - Allow multiple selections for git_log, insert HASH[1].. HASH[-1] range
@thanharrow
thanharrow / fzf-git.sh
Last active July 28, 2023 13:11
fzf-git.sh
# https://github.com/junegunn/fzf-git.sh
# The MIT License (MIT)
#
# Copyright (c) 2022 Junegunn Choi
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is