Comments (13)
I noticed this as well last night.
What pager are you using? I noticed that if I'm using less
it works fine. Otherwise, I get an error if I have no pager configured. Is that what you're seeing as well?
Thanks for your help once more 🙂
from cheat.
This is being caused by the code that underlines the cheatsheet titles.
Now that I'm looking at this with fresh eyes, I don't like the underlining anyway. It adds too much visual noise to the results. I'm just going to rip it out.
from cheat.
@vaporup, this should be resolved in the 4.2.7
release:
https://github.com/cheat/cheat/releases/tag/4.2.7
Please let me know if that works for you. Thanks.
from cheat.
Oh, and one note about this one:
cheat -c ls
-c
is short for --colorize
, so it's always going to produce colorized output no matter what. That first example thus is expected behavior.
The cheat -s ls
example was a bug, however, and should now be resolved with the newest release.
from cheat.
Well,
I still get ANSI sequences with -c
but no colors
from cheat.
@vaporup, oh, I see. I (partially) misunderstood the nature of the problem.
Yeah, it looks like if I disable the pager, I also get ANSI codes without colors. I'll take a second look at this. Thanks.
from cheat.
@vaporup, please try 4.3.0
and see if that solves the problem for you:
https://github.com/cheat/cheat/releases/tag/4.3.0
Note that cheat
handles pagers somewhat differently now. It only reads pager configs from the config file, and no longer searches for pagers during runtime.
I don't think you were using a pager anyway (and you were thus able to identify this problem), but if you were, you may need to modify your config file.
Thanks again.
from cheat.
The Escape sequences are gone but I don't get colored output using -c
from cheat.
@vaporup, please paste the contents of your cheat
config file in this thread so I can take a look. Thanks.
from cheat.
I always delete ~/.config/cheat when testing a new release, so it is the default config which is created on first run
from cheat.
Thanks again, @vaporup
I was able to reproduce the problem. Please try the 4.3.1
release:
https://github.com/cheat/cheat/releases/tag/4.3.1
As far as I can tell, this finally solves the problem. I'll optimistically close this ticket, but please let me know if this is still broken for you. Thanks.
from cheat.
Looks good now :-)
from cheat.
Great to hear. Thanks, @vaporup 👍
from cheat.
Related Issues (20)
- Listing cheats forces pager on latest Debian/Ubuntu HOT 6
- New cmd implementation in minimal POSIX sh? HOT 1
- 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
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.