-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: add filetype icons #34
Conversation
Refers to discussion in comments here: jannis-baum#27 (comment) Motivation: no more ambiguity whether an item is a regular file or a directory
CI works, thanks! |
Sounds good about the symlinks! I made some more adjustments toward the rough direction of how GitHub lists directory contents (namely styling, unicode icons & sorting directories above). Let me know if you're happy with it like this @tuurep and if yes we can merge :) |
Really good ideas! Most importantly and my first thought: if we use dir icons, there's no longer need for the trailing slash 😄 So I would just drop it, Please give me some time, after pulling in your commits I get a Sorting directories first is great, that's one idea I had on the back of my mind. Warning: offtopic |
True about the title haha! But I agree, I removed the trailing slash
I also just had this problem and realized it was just because I was using my old installed version of I can make a new release after this PR.
My answer ended up too long for this haha so I just opened #35 to reply |
Hmm I don't understand why it doesn't work with my way of updating the executables, here's what I did the whole time so far:
where
#!/bin/sh
cd `dirname $0`
rm -rf bin
node_modules/.bin/tsc --project . \
&& node_modules/.bin/pkg . \
|| exit 1
mkdir bin/macos
mv bin/vivify-server-macos bin/macos/vivify-server
cp viv bin/macos/viv
mkdir bin/linux
mv bin/vivify-server-linux bin/linux/vivify-server
cp viv bin/linux/viv
#!/bin/bash
cp -f ./bin/linux/viv ./bin/linux/vivify-server ~/.local/bin/ \
&& echo Installed Then Maybe it's the build script?
This however did work. I was a little worried about how the icons would look on different themes, since the color of them doesn't adapt, right? I think by luck, it's looking great for both your dark theme and my (or Github's) light theme, comparison: Looks great on both, love it. I don't know where the icon is coming from, is it a font? The way you added this it's themable through the custom stylesheet I think? That's pretty essential imo. |
I have just a couple pending things if you wanna include them. But it's okay either way. Here's my lil' todo list:
Last one is such a small thing and I feel cursed for even noticing it xD |
Hm, strange. What do you get when running
No, they are just very cheap unicode characters🙈 So technically if they don't work on all background colors for someone we can blame the typeface that person is using lol. At the end of the day using proper icons would be much nicer but it's customizable with the CSS config so people can switch to their own icons if they feel the need for something nicer.
Yes, exactly. Easily themable; default is just an emoji and can be adjusted to any other character or even image in one line of CSS. |
Yes sounds good! Then let's do
Hahaha I've noticed that as well. This is actually not just an issue with non-md files but code blocks in general. The first line is always incorrectly indented. Feel free to investigate ^^ I haven't looked into it. |
I do get the It's really pointing to this PR though because when I run the The fact that the Icon themability sounds great thank you 👍 On code blocks:
Didn't know this, and it helps :) |
Yes, very confusing. Was able to reproduce & my most recent commit fixes it for me. Might be a bug with how it is packaged? No idea. Problem was that |
Thanks so much. Works! Can be merged now :) (looks like I can't 'approve' your commit in my own PR though?) |
Yeah haha I agree GitHub should add the feature of reviewing your own PR. I'll merge when I'm on my computer :) |
Refers to discussion in comments here: #27 (comment)
Motivation: no more ambiguity whether an item is a regular file or a directory
Thoughts about symlinks
I was gonna also add trailing
@
for symbolic links, the same way asls -F
does, but actually symbolic links don't really work at all (you can't resolve the path by clicking on it) so if we wanna look into those, that's a separate issue.My take about that would be: if resolving a symlink path adds too much complexity, maybe not worth adding. Otherwise, sure.
Didn't add separate dir color at this time
The trailing slash was a great point to start, it's fine by me if the entries are styled as a link (
<a>
) because that's what they literally are.What do you think?