Comments (7)
It could be a good idea to overwrite default cheat by yours if it exist, and when your are trying to edit an existing one, copying it and modifying could be really good.
Will try to make the changes and ask for a merge.
Thanks for your contribution, I think this feature will be pleased by the users :)
from cheat.
Great to hear that you support the idea. Thanks 👍
from cheat.
After a check, cheat mechanism already match the pattern that your cheat overwrite the "system" one.
Will just made the change to check if the file is writable and if its not the case ask if the user want to copy it before making the edit in his own cheat_dir
from cheat.
Does cheat then take precedence of the sheets in $HOME over the system-wide ones?
Because after copying there will be two cheat sheets for the same command.
from cheat.
It seems like cheat takes your cheats in your $HOME/.cheat before the system-wide.
I will just make some test to be sure, but if its not the case, I will make a little change to be sure of that.
I am, at that time, working on the source code and will give you information about what can be done or have been done.
:)
from cheat.
Implemented!
from cheat.
Thanks @chrisallenlane!
from cheat.
Related Issues (20)
- New cmd implementation in minimal POSIX sh? HOT 1
- 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
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.