Skip to content

Commit 9e797b1

Browse files
committed
updated(zsh): fzf colors are now terminal colors instead of truecolor
1 parent cf77f3f commit 9e797b1

File tree

3 files changed

+26
-18
lines changed

3 files changed

+26
-18
lines changed

README.md

+2-13
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,10 @@ A higher quality version can be found [here](https://lmburns.com/gallery/media/l
1616

1717
The fork is adding color to the output when listing the aliases and environment variables, as well as creating an `IndexMap` that will shorten directory names based off of common environment variables.
1818

19-
### TODO
20-
* Fix/add tests now after adding colored output
21-
* Bash completions
22-
* Color the `%HASH` mapping differently
23-
* Add `bg`, and `TrueColor` support
24-
* Colors are getting erased in config
25-
* Set colors for `radf` function
26-
* Using `%HASH` in `radf` function
27-
* Use `fzf`: `tokio` and `async`
28-
29-
### Table of Contents
19+
# Table of Contents
3020

3121
- [Rualdi (Rust Aliasing Directory)](#rualdi-rust-aliasing-directory)
32-
- [TODO](#todo)
33-
- [Table of Contents](#table-of-contents)
22+
- [Table of Contents](#table-of-contents)
3423
- [Introduction](#introduction)
3524
- [Examples](#examples)
3625
- [Getting started](#getting-started)

TODO.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## TODO
2+
* Fix/add tests now after adding colored output
3+
* Bash completions
4+
* Color the `%HASH` mapping differently
5+
* Add `bg`, and `TrueColor` support
6+
* Colors are getting erased in config
7+
* Set colors for `radf` function
8+
* Using `%HASH` in `radf` function
9+
10+
* Allow configuration options for colors
11+
* Clippy the project

src/subcommand/init/zsh.rs

+13-5
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,17 @@ function __rualdi_colorize() {{
8787
local field='\(\S\+\s*\)'
8888
local esc=$(builtin print '\033')
8989
local N="${{esc}}[0m"
90-
local R="${{esc}}[0;38;2;160;100;105m"
91-
local G="${{esc}}[0;38;2;129;156;59m"
92-
local Y="${{esc}}[0;38;2;254;128;25m"
93-
local B="${{esc}}[0;38;2;76;150;168m"
94-
local pattern="s#^${{field}}${{field}}${{field}}#$Y\1$R\2$N$B\3$N#"
90+
91+
# local R="${{esc}}[0;38;2;160;100;105m"
92+
# local G="${{esc}}[0;38;2;129;156;59m"
93+
# local Y="${{esc}}[0;38;2;254;128;25m"
94+
# local B="${{esc}}[0;38;2;76;150;168m"
95+
96+
local R="${{esc}}[31m"
97+
local G="${{esc}}[32m"
98+
local Y="${{esc}}[33m"
99+
local B="${{esc}}[34m"
100+
local pattern="s#^${{field}}${{field}}${{field}}#$R\1$Y\2$N$B\3$N#"
95101
(( $+commands[gsed] )) && gsed "$pattern" || sed "$pattern"
96102
}}
97103
@@ -243,3 +249,5 @@ unset OLDIFS
243249

244250
Ok(())
245251
}
252+
253+
// vim: ft=rust:et:sw=0:ts=2:sts=2:fdm=marker:fmr=[[[,]]]:

0 commit comments

Comments
 (0)