Skip to content
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

enhancement: Replace main screenshot of code with common/copyable code #47

Open
bigpick opened this issue Jun 7, 2021 · 10 comments
Open

Comments

@bigpick
Copy link

bigpick commented Jun 7, 2021

Info

If there was a general block of code that could be used for consistency across different ports, I think that'd be a good idea, to have at least somewhat of a basis to base appearance off of. Or, at the very least, so that each port has the same amount of demonstrated code/syntax highlighting.

I tried searching around for the code in the main repo's readme, but it seems like it must be private code/in a private repo somewhere. What do you think about replacing it with a screenshot of a new common block of code (and then also uploading that block of code(s) in a sample/ type folder as well)?

Down the road, could have multiple languages, etc.. but having at least one or two sizable chunks of common code that could be used across various ports would be nice imo.

@pineapplegiant
Copy link
Owner

This is a good idea. Definitely cross linked with the screenshots issue, wanna get more screenshots in here in general

@jinh0
Copy link
Collaborator

jinh0 commented Jun 8, 2021

+1 on a sample/ folder, especially for JavaScript, TypeScript, and Python.

I reference this file a lot while discussing JavaScript syntax, since I think it contains all the dynamic colors in Spaceduck. What do you think about adding this to the sample folder?
Screen Shot 2021-06-08 at 12 12 49 PM

@pineapplegiant
Copy link
Owner

pineapplegiant commented Jun 8, 2021

I wanna change that orange to turquoise and the brackets away from purple in that image. I don’t like the colors, despite them being all represented 😖

perhaps the function parameters too :/

@jinh0
Copy link
Collaborator

jinh0 commented Jun 9, 2021

How about I put this code into a sample/ folder and push it to the dev branch so we are both using the same file to test new syntax colors?

@bigpick
Copy link
Author

bigpick commented Jun 9, 2021

I guess I was thinking something more like an idea, that would be aside to copy/implement across multiple languages, but having something at least copyable for now would be a start

@pineapplegiant
Copy link
Owner

pineapplegiant commented Jun 9, 2021

I don’t wanna have any users install testing code when they use this plugin. Do you know if there’s a git way to have this separate, or should there be another repo or something? I have a local folder of random syntax files that I’ve been using for personal use.

@bigpick
Copy link
Author

bigpick commented Jun 9, 2021

I don’t wanna have any users install testing code when they use this plugin

So, this is specifically talking about just the vim port then, yeah?

One way, would be to have a spare repo under the org (+1 for another org usecase;)), and it'd just be something like samples so like spaceduck-theme/samples and in it would just be a bunch of various languages that we have consistent/similar files showing a medium chunk sized of code, to demonstrate what a language looks like.

Then, in whatever port, for the "demo" screenshot(s), you just copy+paste one/some examples from that repo, for demonstrative purposes. But the port has no knowledge of that code, its just something you do temporarily to get the screenshot. So like, you could have a main screenshot in the spaceduck-theme/spaceduck-vim repo that is in vim, it's just the same code the maintainer of the theme copy/pasted from one of the sample files when they made the screenshot(s) for the port. That covers the specific vim/plugin case, where users don't have to install code snippets as part of a port, but also makes it so that all ports should have a consistent set of code/files to be able to choose from to "demo" for screenshots.

@pineapplegiant
Copy link
Owner

Lol made an org and invited you guys 😛 🚀

@bigpick
Copy link
Author

bigpick commented Jun 9, 2021

@pineapplegiant cool, thanks. Can join, but think still need permissions to do anything for now. fwiw, I was thinking something like

spaceduck-theme
├── atom-syntax       # port
│   ├── README.md
│   ├── ...
├── atom-ui           # port
│   ├── ...
├── samples           # port
│   ├── code.js
│   ├── code.json
│   ├── ...
│   └── code.py
├── slack             # port
│   ├── ...
├── spaceduck
│   ├── README.md
│   ├── color_syntax_specification.md
│   ├── ...
├── spaceduck-site
│   ├── ...
...
└── vim               # port

where spaceduck-theme/spaceduck would be your top level "🚀 🦆 An intergalactic space theme for Vim, Terminal, and more!" landing repo, and then you have your ports/site/w.e else under it

@pineapplegiant
Copy link
Owner

Yeah I think you're on the money that makes sense 🧠

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants