Skip to content

Commit a297d84

Browse files
committed
fix: improve bat and lf settings
1 parent 0c15b3e commit a297d84

File tree

5 files changed

+30
-8
lines changed

5 files changed

+30
-8
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.6.0] - 2020-06-05
10+
### Added
11+
- Plugin "easy-motion" to nvim.
12+
13+
### Fixed
14+
- Improve bat and lf settings.
15+
- Improve functions and bindings for nvim.
16+
- Improve bindings for amethyst.
17+
18+
### Changed
19+
- Fix README typo.
20+
- Add a changelog to the project.
21+
922
## [0.5.0] - 2020-05-27
1023
### Added
1124
- Created way more fzf functions in zsh.
@@ -60,7 +73,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6073
### Added
6174
- Created basic script for proof of concept.
6275

63-
[Unreleased]: https://github.com/adamtabrams/fig/compare/0.5.0...HEAD
76+
[Unreleased]: https://github.com/adamtabrams/fig/compare/0.6.0...HEAD
77+
[0.6.0]: https://github.com/adamtabrams/fig/compare/0.5.0...0.6.0
6478
[0.5.0]: https://github.com/adamtabrams/fig/compare/0.4.3...0.5.0
6579
[0.4.3]: https://github.com/adamtabrams/fig/compare/0.4.2...0.4.3
6680
[0.4.2]: https://github.com/adamtabrams/fig/compare/0.4.1...0.4.2

home/.config/bat/bat.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
--style="changes"
33
--italic-text="always"
44
--color="always"
5-
--paging="never"
5+
--paging="always"
66
--decorations="auto"
77
--wrap="never"

home/.config/lf/lfrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ map L $lazygit
2323
map D :delete
2424

2525
# custom ignore
26-
set ignorer ~/.config/lf/ignore.sh
27-
set nodirfirst

home/.config/zsh/alias.zsh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ alias l="lfcd"
2222
alias j="jump"
2323
alias c="jump"
2424
alias loc="tokei -s code"
25-
alias page="$PAGER"
25+
alias page="$PAGER --paging=always"
26+
alias bat="bat --paging=never"
2627

2728
#### Configs #####################################
2829
alias .zsh="$EDITOR $ZDOTDIR/.zshrc"
@@ -42,6 +43,8 @@ glog() { git log --oneline --no-decorate "-${1:-5}" ${@:2} }
4243
bak() { cp -r "$1" "$1.bak" }
4344
unbak() { mv "$1" $(sed "s/.bak$//" <<< "$1") }
4445

46+
mksh() { echo "#!/bin/sh" >> "$1" && chmod +x "$1" }
47+
4548
#### Fzf #########################################
4649
# go to one of the lastest dirs
4750
gl() {
@@ -55,6 +58,13 @@ gr() {
5558
[ "$repo" ] && cd "$HOME/repos/$repo"
5659
}
5760

61+
# go to a repo (recursive)
62+
grr() {
63+
repo="$(cd ~/repos && fd -d3 -t d -I -H "^.git$" |
64+
rev | cut -c 6- | rev | fzf --reverse)"
65+
[ "$repo" ] && cd "$HOME/repos/$repo"
66+
}
67+
5868
# open a repo in the browser
5969
or() {
6070
prev_dir=$(pwd) && gr && hub browse; cd "$prev_dir"
@@ -100,8 +110,8 @@ ew() {
100110
#### Save lf Dir #################################
101111
lfcd () {
102112
tmp="$(mktemp)"
103-
~/repos/lf/lf-bufio -last-dir-path="$tmp" "$@"
104-
# lf -last-dir-path="$tmp" "$@"
113+
# ~/repos/lf/lf-hiddenfiles -last-dir-path="$tmp" "$@"
114+
lf -last-dir-path="$tmp" "$@"
105115
if [ -f "$tmp" ]; then
106116
dir="$(cat "$tmp")"
107117
rm -f "$tmp"

home/.zprofile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export LANG="en_US.UTF-8"
99
export SHELL="zsh"
1010
export OPENER="$EDITOR"
1111
export VISUAL="$EDITOR"
12-
export PAGER="bat --paging=always"
12+
export PAGER="bat"
1313
export GIT_PAGER="$PAGER"
1414
export MANPAGER="col -bx | $PAGER --language=man"
1515

0 commit comments

Comments
 (0)