-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline usage #14
Comments
It's not yet implemented, but it will be implemented soon (on this weekend I hope). It's one of the most wanted features. Stay tuned! |
@chubin you are promise feature, up issue) |
That's true. Thank you for upping it |
Offline or internal mirror? |
I think that offline is better. Internal mirror is another option, but it is possible already. We (me and @akaguny) have meant offline usage here |
After the ycombinator post, the service returns this:
Which means an offline mode would be certainly great. |
@giraldeau Yes, it is true. We are trying to mitigate the high load problem currently. I think it will be fixed soon. |
I'm sure it won't matter after a few days, but this is the best reason to have it work offline. However, by the time it works offline, the whole not being able to access it won't even matter. Until HackerNews sends out its newsletter on Friday and starts the downtime cycle all over again. |
@brandonpittman The offline feature is very useful still, for one of the main reasons why cheat.sh was created is to fight the distraction the comes from the web/browser. And the best method to fight the distraction is to go offline. That's why the offline (or semi-offline) mode is extremely important for us. |
@chubin I hope I didn't sound negative. 🙇 Love the project's goals and I'm looking forward to later today (Japan time) when maybe the load won't be so heavy and I can play with it a bit. |
Can i just clone the repository to an internal webserver in my network to use it? Is there a new plan for the release of an offline feature? The tool is so useful! Thanks for all the hard work! |
Totally forgot about this project until I got the last comment notification. |
@brandonpittman @giraldeau Now back to the offline mode.
Both of them are really important. I've already written about the offline mode. The mirror feature is very important too. In the mirror mode, cheat.sh can be installed in Intranet (or even in the Internet) building a cascaded distributed cheat sheets repository:
The users of cht.lan can access both local cheat sheets and the global cheat sheets. This mode can be implemented quite easily. Actually, it is implemented already, the only missing part is the straightforward installation process + documentation. The offline mode is trickier to implement because of the obvious fact that some cheat sheets should be generated on the fly. But as I said we have several good options here too. |
I recently noticed the Dash project again, which has mirroring, offline access, and some forms of "cheat sheets" in its libraries. Maybe rather than reinvent the wheel, the content in this project could be added to Dash. Or maybe another instance of Dash's code and infrastructure could be set up with this project's content. Seems a shame to reinvent so many wheels. IIUC this project's primary contribution is how it "ingests" content from sources, and that could be connected with other destinations. |
@alphapapa Dash is an interesting project, but it has not so much common with cheat.sh as you probably think |
Up ^^ really would love to see this offline |
@voodooEntity Do you want to see UNIX/Linux commands cheat sheets offline, or programming languages quesions/answers, or both? |
I think having both would be great. |
How's the situation? Can cheat.sh be used offline? |
@ndavidpsi Yes, you can use cheat.sh offline for UNIX/LInux command cheat sheets, but not yet for coding questions cheat sheets. Do you need the former or the latter? |
I don't know much about cheat.sh yet, so for now my main/only reason for using it is to check programing language syntaxes/tutorials |
@ndavidpsi I've documented the installation process in |
Thanks that's wonderful. I actually use Windows but I have access to Linux as well so it isn't an issue. But is there a Windows/cmd version of cheat.sh or will it ever be? |
We could easily add it, it won't be hard. Do you want to run it from the terminal or from the editor? In the latter case, what editor/IDE do you use? |
Wow that's great. Both would be ideal, terminal and editor. But if I were to choose only one I'd go with editor support, I use neovim |
We currently have no Neovim support, but we will hopefully have it soon |
From all the plugins I've tried all those made for Vim work in Neovim so it'll probably work. But actually, if for now you could integrate the feature in Windows Terminal version it would be great, because I can always execute a terminal command within neovim |
|
I have access to bash and curl. The plugin for vim works perfectly. Now, what would be the procedure for a standalone installation in vim? |
@ndavidpsi The problem is that for the standalone installation you need to much different dependencies, and to install them on Windows is though possible, but I am not sure that it will be straightforward (bash, git, python, python deps). I think the best way here would be to implement a new closs-platform client that could be easily installed in Linux as well as in Windows and in Mac, that would also support the standalone mode. I believe, this approach would be ideal. |
Yeah, that should be the long term solution. But those things you mentioned I have them all, git, python, bash... |
Try to go through this, let's see what errors you will get: https://github.com/chubin/cheat.sh/blob/master/doc/standalone.md |
But that's the Terminal version. I want to do it in Vim version as well |
I'll do it tomorrow morning |
My procedure (on cmd):
Error:
|
I think it would be possible to convert that sh file into a bat file (which is what is used on windows). Then the native console would do all the work. Instead of, in my case, WSL2 bash.exe |
@ndavidpsi https://github.com/chubin/cheat.sh/blob/master/Dockerfile here are more things that you may have been missing, like PyICU library. |
Thanks (PS: I'm ndavidpsi, using this account from now on) |
Even though I installed pkg-config on bash it is throwing me an error to install it |
I think we should disable |
Would it be possible to convert cht.sh to cht.bat? Maybe in another repo or on this one idk. It's just that's what windows uses. That way bash wouldn't be required. It would be the best way to properly implement it on windows |
@sp1n0r can you please open a separate issue and move the Windows discussion there? |
@infokiller of course. I'll open an offline usage for Windows separate issue rn |
I also saw the above error condition when trying a local install on Mac:
I solved this via:
And updating my environment as directed. I also use |
@mcallaway Matt, we will make this ICU Module optional; see #272. We already discussed it with @abitrolly: this module is needed only for multi-language, non-English queries support, which is (1) highly experimental (2) not used by a typical cheat.sh user, let alone standalone installations |
#259 is the issue about removing ICU if anyone wants to help. Maybe it worth to pin it. |
Until ICU is optional, you might consider some text in the "install" section that explains the current requirement. |
@mcallaway I believe the problem with ICU is Windows specific and doesn't directly affect offline usage once you install appropriate toolchain to build it. |
I just got a |
Task
Hi, how i may use cheat.sh offline, some of my servers don`t have access to the enternet, but i want to use cheat.sh)
Details
The text was updated successfully, but these errors were encountered: