noam3127 / github-code-folding Goto Github PK
View Code? Open in Web Editor NEWChrome extension that enables code folding in GitHub
License: MIT License
Chrome extension that enables code folding in GitHub
License: MIT License
Would allow for built-in wider cross-browser compatibility, less cluttered toolbars, and faster update cycles.
I love the idea of this Extension. Much appreciate you putting in the work.
I noticed it wasn't working on this codebase :
https://github.com/SuperAuguste/zig-design-patterns/blob/main/src/vtable.zig
Not sure why. It works on your own codebase. So I guess it's the language.
The language uses braces { } and typically has standard indentation, so I expected it to work.
Cheers
Nigel
When I return to a GitHub page I've already visited, the whole of main.js
is being called three—and sometimes four— times.
Any details on why it was removed?
Hi
Thank you for making this extension, it is really helpful!
I run into a small issue today and come here to see if you could help.
It is making unexpected log messages in my devtool console. But as I look into the codebase, I found that the line making logs has been removed from the codebase a long time ago in this commit.
Now I am wondering if the published version is built from the latest codebase. If not, could you please publish again with the latest codebase?
Thanks!
For some reason I am seeing the SVG metadata in the code, this line - https://github.com/noam3127/github-code-folding/blob/master/main.js#L21
Hi, thanks for the great plugin! I use it all the time.
One thing I keep finding myself wishing I could do, especially on large files, is click a button that will collapse every fold so I can get a "big picture" view of the file. Then I could click the button again to expand all of the folds.
I love this extension, thank you for releasing it!
If I could be slightly selfish and just make one feature request, it would be for the browser to remember which cells were folded on page-reload. I tend to fold the same blocks each time :) thanks!
it seems not work?
When I was debugging my PR I noticed main.js
being called twice (I ran a console.log()
at the top of the file). Have a look at this thread.
Hi, thank you for this extension.
It seems that it doesn't fold function with ES6 template strings in it (or maybe only when they're multiline, I didn't check), e.g.:
function createHelloWorld() {
const main = document.createElement("main");
main.innerHTML = `<h2 class="info">
Hello World!
</h2>
`;
return main;
}
Hi,
Great extension! Really useful when exploring new repos.
Can you also add gist.github.com to the sites that the extension can access.
Hi Noam @noam3127,
Thank you for Github Code Folding.
Unfortunately, background.js
generates an error: Missing host permission for the tab:
github-code-folding/manifest.json
Line 15 in fa14c20
I have never used this extension before, so I don't know that it ever worked. I do know it doesn't work for me right now, but perhaps it's user error (e.g. haven't performed a system upgrade in a few weeks [archlinux], did not relaunch firefox after installing [never have needed to]).
edit:
Apparently there is a working implementation downstream, which moves the source files so finding the fix through PR diffs isn't as easy as it could be.
See it here for an example:
https://github.com/julia-actions/setup-julia/blob/8945494c8cfb5fbf12f33bfc1b0716390ddf14e5/bin/build-release#L21
This looks great, but I would much prefer a greasemonkey script, which won't sink across computers like my chrome extensions do.
I want to collapse braces for the following statements.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.