tweak makefile, selected star

pull/6/head
dvkt 4 years ago
parent 08620f4489
commit 7c3617716d

@ -1,15 +1,18 @@
.PHONY: build release run
.PHONY: build release run dev debug
run: phetch
./phetch
dev: debug
phetch: src/*.rs
debug: target/debug/phetch
release: target/release/phetch
target/debug/phetch: src/*.rs
cargo build
cp target/debug/phetch .
cp $@ phetch
release:
target/release/phetch: src/*.rs
cargo build --release
strip target/release/phetch
strip $@
cp $@ phetch
clean:
rm -rf target

@ -17,8 +17,8 @@ dirt simple terminal gopher client.
## development
cargo run
cargo run -- <gopher-url>
## resources
- [rfc 1346](https://tools.ietf.org/html/rfc1436)
@ -29,7 +29,7 @@ dirt simple terminal gopher client.
- gopher.black
- sdf.org
- gopher.quux.org
- hngopher.com
- hngopher.com
- bitreich.org
## TODO
@ -67,5 +67,5 @@ dirt simple terminal gopher client.
- [ ] fuzzy find search links
- https://github.com/stewart/rff
- https://github.com/Schlechtwetterfront/fuzzy-rs
- [ ] detect SIGWINCH
- https://github.com/BurntSushi/chan-signal
- [ ] detect SIGWINCH
- https://github.com/BurntSushi/chan-signal

@ -83,7 +83,7 @@ impl MenuView {
out.push_str(" ");
} else {
if line.link - 1 == self.link {
out.push('*');
out.push_str("\x1b[97;1m*\x1b[0m")
} else {
out.push(' ');
}

Loading…
Cancel
Save