-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Additional commands on the Gitpod CLI #800
Comments
Also, what would be the best way to check if gitpod is running on debug mode? I want to make sure students are using it during the exercises. |
What do you mean by this? |
Could you elaborate a bit what this functionality is? Usually the GP cli is an interface to existsing functionality in gitpod from the command line. We don't have this functionality at the moment, do we? |
I want to be able to know if you are running your code using the |
This is the least important of the features right now, the idea is to be able to show a help modal window with a message, similar to the one Gitpod shows at the beginning when it is your first time using it. I want to do this because sometimes when the students run the exercises for the first time, they don't notice that the instructions are on the right side of the screen (preview). I want to open a modal in the center of the screen to make sure I have their attention. |
@jankeromnes can I you guys do the HTML: https://github.com/4GeeksAcademy/html-exercises |
@alesanchezr I guess @32leaves How complicated would this be to implement? I took at look at the |
Maybe a flag on the |
@jankeromnes is it possible to add a command to save the current opened file? The problem is that when doing the exercises students for get to save before running the code, I would like to implement some king of "autosave" or saving the file before trying to test/run the code. Do you have the code for the gitpod-cli open sourced? Maybe I can contribute to it under your lidership. |
You can enable autosave in the preferences.
|
Oh perfect. |
Is i'm still using /worspace/reponame/.vscode/settings.json and i hate it |
you can use either |
Ok so I have aded autosave to all exercises, I also added video introduction and tutorials for some of them but I'm still missing something, I beta-test the exercise engine with students every day and I think I need a way to open a modal, is there any way? Some if the exercises like the React.js ones are getting some traction, ~40 likes in github already! I need the modal because its the only way to welcome the user and grab their attention, explain the basic steps to complete the exerises. |
I believe fo such scenarios it would be better to go with a VS Code extension. There you can send messages: https://code.visualstudio.com/api/references/vscode-api#MessageOptions |
I agree that |
See also #1403 |
Also would be nice to have gp's source ^-^ |
I will see if I can implement some of these. |
Also, @alesanchezr, to be clear for the |
Yeah @JesterOrNot just to be able to grab the user attention and show an introductory message. |
Also, you said dom-selector how would that work? Would something like |
The dom-selector you can forget, it's an overkill and I was able to replicate something like that inside the preview area. The |
@alesanchezr did you try a vs code extension as I proposed in #800 (comment) |
@svenefftinge I know, its just that most people doing our tutorials are first-time Gitpod users and they don't event know what an extension is, we mostly target junior devs learning code (for now) with little or no previous experience. Eventually we will develop the extension when we start focusing in more experience users as well. |
|
For Code we are going to provide an option to execute any IDE command in the current window: #3166 It should be enough to close the currently opened editor. I am not sure about baking IDE specific commands like |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello, I'm building an exercise framework on top of gitpod, So far I manage to create a beta version but I would be able to improve it better I you guys could incorporate the following to the Gitpod CLI:
$ gp close
I'm already usinggp open
a lot, but I need to close the exercise filles when opening another exercise, otherwise the amount of files being edited grow to fast and becomes difficult to work with.$ gp user
get the current github username$ gp file-opened
get the current file where the cursor is focused.$ gp prompt <dom-selector>
alert or prompt the user with a message pointing to a particular DOM element inside gitpod (or in the center of the screen).Here you can see the progress so far: https://gitpod.io/#https://github.com/4GeeksAcademy/html-exercises
The text was updated successfully, but these errors were encountered: