1 | 1 | | Advanced fzf examples |
2 | 2 | | ====================== |
3 | 3 | | |
4 | | - | *(Last update: 2021/05/22)* |
| 4 | + | *(Last update: 2022/08/25)* |
5 | 5 | | |
6 | 6 | | <!-- vim-markdown-toc GFM --> |
7 | 7 | | |
| skipped 488 lines |
496 | 496 | | Key bindings for git objects |
497 | 497 | | ---------------------------- |
498 | 498 | | |
499 | | - | I have [blogged](https://junegunn.kr/2016/07/fzf-git) about my fzf+git key |
500 | | - | bindings a few years ago. I'm going to show them here again, because they are |
501 | | - | seriously useful. |
| 499 | + | Oftentimes, you want to put the identifiers of various Git object to the |
| 500 | + | command-line. For example, it is common to write commands like these: |
| 501 | + | |
| 502 | + | ```sh |
| 503 | + | git checkout [SOME_COMMIT_HASH or BRANCH or TAG] |
| 504 | + | git diff [SOME_COMMIT_HASH or BRANCH or TAG] [SOME_COMMIT_HASH or BRANCH or TAG] |
| 505 | + | ``` |
| 506 | + | |
| 507 | + | [fzf-git.sh](https://github.com/junegunn/fzf-git.sh) project defines a set of |
| 508 | + | fzf-based key bindings for Git objects. I strongly recommend that you check |
| 509 | + | them out because they are seriously useful. |
502 | 510 | | |
503 | 511 | | ### Files listed in `git status` |
504 | 512 | | |
| skipped 12 lines |
517 | 525 | | <kbd>CTRL-G</kbd><kbd>CTRL-H</kbd> |
518 | 526 | | |
519 | 527 | | ![image](https://user-images.githubusercontent.com/700826/113473765-91692080-94a6-11eb-8d38-ed4d41f27ac1.png) |
520 | | - | |
521 | | - | |
522 | | - | The full source code can be found [here](https://gist.github.com/junegunn/8b572b8d4b5eddd8b85e5f4d40f17236). |
523 | 528 | | |
524 | 529 | | Color themes |
525 | 530 | | ------------ |
| skipped 80 lines |