Comments (11)
@gotbletu Have a look at this: https://github.com/dufferzafar/cheat
It's a go fork of cheat, that I created specifically for the colored output.
from cheat.
yea i would of used that Go version but they dont got a search option but this python version does =)
from cheat.
Hi,
I use vimcat
function __cheat() {
if [ $# == 1 ]; then
cheat $1 | vimcat -c 'set ft=sh'
else
cheat $@
fi
}
alias cheat=__cheat
from cheat.
@liambeguin Thanks ill give that a try
from cheat.
@liambeguin
Thanks for this! im having issue with the function: __cheat:1: = not found, any idea?
from cheat.
Hi,
is the __cheat()
function in your bashrc ?
from cheat.
im using zsh but yes, i made it work with just the cheat $1 | vimcat -c 'set ft=sh', but instead of ansi colors i get codes :P
from cheat.
hum... I'm not very familiar with zsh but I remember having issues with the colors.
is your TERM variable correctly set ?
from cheat.
yeah, i think ill move to xterm, i've been having issues with colors. thanks man, dont want to waste more of your time. cheers
from cheat.
Generally speaking, I think the syntax highlighting would work fine for nearly all cheatsheets provided that we defaulted to using a sh
syntax highlighter. I don't recall what we're doing off the top of my head (I haven't dug into this codebase in a while), but perhaps that would be an easy change.
I'll try to take a look at that this week - unless somebody wants to beat me to the punch with a PR ;)
from cheat.
Color seem OK on my system, so I'm going to assume that @sogseal's local configuration may have been a contributing factor. @sogseal (or anyone else) - if you continue to have trouble on your new terminal, feel free to re-open this ticket. Thanks!
from cheat.
Related Issues (20)
- Colorized output and search shows ANSI Escape Sequences HOT 13
- Version 4.2.7 broke personal cheatsheets in custom location HOT 11
- Git submodules as cheatsheet paths don't work any more HOT 6
- `cheat -l` gives error if cheatpath dir contains `.gitignore` (but no `.git/`) HOT 7
- Autocompletion Not working HOT 3
- frontmatter error HOT 20
- Cheat fails to show when the filepath contains directories that end in ".git"
- Cheat files tagged personal going into unexpected folder HOT 3
- safer installer? HOT 1
- feat: add cheatsheet for Vite. HOT 1
- Failed to parse front-matter HOT 4
- failed to write to pager: exec: "PAGER_PATH": executable file not found in $PATH HOT 7
- yaml unmarshal error :: Cannot unmarshal !!str `tags [ ...` into sheet.frontmatter HOT 2
- lstat /home/foo/.config/cheat/cheatsheets: no such file or directory HOT 1
- Magic SysRq REISUB HOT 1
- Update chroma dependency HOT 1
- yaml unmarshal error :: Cannot unmarshal !!str tags [ ... into sheet.frontmatter HOT 1
- Config option to exclude files
- Consider building with `CGO_ENABLED=0` HOT 2
- Winget support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cheat.