-
Notifications
You must be signed in to change notification settings - Fork 879
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
Allow to edit files and then create a pull request #21
Comments
I don't care so much about the PR, but being able to edit a file just to copy slightly-changed code to paste somewhere would be great. |
I agree with this, and It is really possible to change file content and create an commit online through GitHub API Docs, I can work for it in nearly future. @ThiefMaster as for simple edit and paste code, you can choose "File -> New File" in activity bar to create an empty file and edit it, may be we can offer an quick way (may be a button or a command) to do it. |
I meant an existing file in the repo - for example, when you are discussing something in an issue and want to paste a snipped from the repo with a some minor modifications. |
GitHub has its own Codespaces product coming for that and more https://github.com/features/codespaces |
@ritchxu There is also gitpod.io and some other offerings that allow this. I believe github1s is the “light” way to quickly look at (and probably edit) the repo (zero startup time, but no features requiring server-side support, like terminal or external language servers). |
I think this feature is doable, but we have to finish #12 and make some refactors to support this. |
I wanted to chime in and give another point of view. I kind of disagree with the PR feature. At least I wouldn't put my focus a lot of focus into it (i.e. high priority feature). The great thing about As soon as it comes to editing though, I personally think that spinning up a codespace is superior. It supports persistence once created, your dotfiles are automatically copied over and it is tighter integrated into GitHub. It even allows for extensions installation IIRC . I personally think that maybe an Looking forward to hear other opinions and thoughts! |
SirWindfield I kind of agree, but if implementing a simple editing feature
is possible (no auto complete, no linters) without hurting loading time,
then I think it's a functionality worth adding. It can be used for quick
pull requests. For more serious work, as you said, there are better fitting
tools, and of course the option to clone locally.
…On Wed, Feb 10, 2021, 21:35 SirWindfield ***@***.***> wrote:
I wanted to chime in and give another point of view. I kind of disagree
with the PR feature. The great thing about github1s is that it spins up
way faster than codespaces (cold and hot). It's great for poking around in
a code base or when trying to see how someone did something without having
to clone it.
As soon as it comes to editing though, I personally think that spinning up
a codespace is superior. It supports persistence once created, your
dotfiles are automatically copied over and it is tighter integrated into
GitHub.
I personally think that maybe an edit in codespace button would be great
if the repository has a devcontainer.json configured. I am not that
familiar with Codespace APIs but maybe it's even possible to automatically
create a PR with some default devcontainer.json from within github1s, as
some kind of bridging between the two.
Looking forward to hear other opinions and thoughts!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMDRPEYO2B36HSE5JG5WPTS6LNYPANCNFSM4XKVFGRA>
.
|
I just assumed that because it's VSCode under the hook it would be the fully fledged experience :) A really simple editing functionality would probably be beneficial indeed! |
I think simple editing + downloadable patch is good enough. |
I’ve been replacing my GitHub graphql api powered REPL with isomorphic git running in web workers. Could that be good for this use case perhaps? |
@fractalhq Could you please share more context? Any repo/demo will be appreciated. |
At some point, I tried to do something like this, which cloned an entire repository in IndexedDB using isomorphic git. But to use it in VSCode UI, you need to reimplements git features in VSCode through SourceControl |
It's not quite what I meant, Gitpod doesn't take 1s to load :( |
I know, it is for someone who need full ide abilities now, we will make continuous improvement in this feature. ( quick edit in 1s) |
Or at least export a patch file or something. That would be really cool 😀
Awesome project!
The text was updated successfully, but these errors were encountered: