-
Notifications
You must be signed in to change notification settings - Fork 184
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 many icons #433
feat: add many icons #433
Conversation
c9f8649
to
ca5215d
Compare
ca5215d
to
cc68728
Compare
Rebased, I think now only need to update |
cc68728
to
721db4b
Compare
Looking good... Some of the darks ones are... too dark to see.
I encountered the same with linux and fixed them here: #408 I just poked around the website until I found another theme colour that was more dark friendly. |
Fails at startup when using xterm defaults i.e. nothing in xrdb. Master is OK.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really good!
There are two unrelated changes here: adding the two new classes of icons and adding new icons. Let's split into two PRs please.
- split into PRs: new categories and new icons
- fix the dark icons feat: add many icons #433 (comment)
- fix the strange xterm error feat: add many icons #433 (comment)
Use the Godot logo on different files that are used on this program.
- BSPWM - GTK - Hyprland - i3 - LXDE - LxQt - Mpv - Prusa Slicer - sxhkdrc - VLC - Weston - Xmonad
Different usecases. Added `.3mf`, `.fbx`, `.obj`, `.ply` and `.stl` file extensions.
721db4b
to
ecf7416
Compare
I was about to update |
It's just a mapping of vim filetypes to something - extension, name, os It's not well maintained. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far, only small nits.
My concentration is flagging now. I'll look at the rest tomorrow.
ecf7416
to
a18c04d
Compare
This is working now. Everything is following existing patterns so not worth digging deeper... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review complete, small changes only.
Please don't resolve conversations. I'll do that so that I can review and mark the subsequent changes.
Edit: please lighten
- gcode
- xpi
- archlabs
- Add G icon for `.gcode` file extension. These files are used on 3D printers and CNC machines. - Add icon to `.bin` file extension. - Add PlatformIO icon for `platformio.ini` settings file. - Add 0x icon to `.hex` files. - Add square wave to extensions for logic analyzer sessions. - `.sal` is for propietary Saleae format. - `.sr` is for open source Sigrok/Pulseview format. - `.gresource` file extension. - `.jwmrc` file extension for JWM. - `.msf` for some Thunderbird files. - `.ui` file extension. - `.xcf` file extension for GIMP
- Add icon for several KiCad file extensions. Free software suite for electronic design automation (EDA). - `.kicad_pro` Project file, containing settings that are shared between the schematic and PCB. - `.kicad_sch` Schematic files containing all info and the components themselves. - `.kicad_sym` Schematic symbol library file, containing the component descriptions: graphic shape, pins, fields. - `.kicad_pcb` Board file containing all info but the page layout. - `.kicad_mod` Footprint files, containing one footprint description each. - `.kicad_dru` Design rules file, containing custom design rules for a certain .kicad_pcb file. - `.kicad_prl` Local settings for the current project; helps Kicad remember the last used settings such as layer visibility or selection filter. - `.kicad_wks` Page layout (drawing border and title block) description file. - `sym-lib-table` Symbol library table: list of symbol libraries available in the schematic editor.Board editor files and folders. - `fp-lib-table` Footprint library table: list of footprint libraries available in the board editor. - `fp-info-cache` Cache to speed up loading of footprint libraries. - Note: Legacy file extensions were ignored, also `.net` and `.cmp` extensions (kind of generic).
- Git - KDE config file - Kdenlive - Krita - X.org
- Video icons were changed to `nf-seti-video`
- Add icon for several FreeCAD file extensions. General-purpose parametric 3D computer-aided design (CAD) modeler. - `.fcstd` FreeCAD native format. - `.fcmacro` FreeCAD macro (Python code). - `.fcmat` FreeCAD material card. - `.fcparam` FreeCAD parameter file. - `.fcscript` FreeCAD script (Python code). - `.fctb` Path tool bit file (JSON format). - `.fctl` Path tool library file (JSON format). - `.fcbak` FreeCAD Backup file. - `.fcstd1` FreeCAD Backup file. - `FreeCAD.conf` Configuration file.
a18c04d
to
3496062
Compare
More changes, let me know if something is missing |
There are some vim filetype mappings we can add e.g. gtkrc Can you please look through |
Sure, maybe an instruction to redirect to |
Sorry, I mean add them to -- Map of filetypes -> icon names
local filetypes = {
["avif"] = "avif", |
What I meant it was to put an instructions for contributors that doesn't know of the existance of those files, like me 😅 lua_file="$HOME/git/github/nvim-web-devicons/lua/nvim-web-devicons/icons-default.lua"
ft="$HOME/git/github/nvim-web-devicons/lua/nvim-web-devicons.lua"
while IFS= read -r line; do
if [[ $line =~ \[\"(.+)\"\] ]]; then
key="${BASH_REMATCH[1]}"
# Search for the key in the main file
line=$(grep -F "\"$key\"" "$ft")
if [ -n "$line" ]; then
continue
else
# echo "$key" | lolcat
[ -f "/usr/share/nvim/runtime/syntax/$key.vim" ] && echo "$key.vim"
fi
fi
done <"$lua_file" |
Oh nice. Maybe drop it in scripts. There's an existing one but it doesn't seem to be very useful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for this outstanding contribution!
Next time please, please smaller PRs.
Still WIP I'm looking at more icons, I want to hear some ideas.
Also I'm waiting for new Nerd Fonts release that includes some new icons.3.2.0 ver. released, I included the KDE, posmarketOS & Qt logos that are new.https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.2.0
For example in:
Would be possible to create groups, for example create a single icon entry and use it various times for different file extensions to simplify the code? For example the open PR with music extensions, maybe a group of video, compressed files. In my case in this PR check the FreeCAD and KiCad extensions.
Something like: