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

Remove obvious user keymaps, keyboards/{s,t}* edition. #23084

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Conversation

zvecr
Copy link
Member

@zvecr zvecr commented Feb 15, 2024

Description

Using script:

the_list() {
find keyboards/{s,t}* -type d -name keymaps -prune 2>/dev/null \
    | while read keymap_dir; do \
        find $keymap_dir -type d \( -mindepth 1 -and -maxdepth 1 -and -not -path '*/onekey/*' \) -prune; \
    done \
    | rev | cut -d / -f 1 | rev \
    | sort \
    | uniq \
    | grep -vE '^(.*default.*|via|via_.*|.*_via|.*ansi.*|.*iso.*|.*tkl.*|.*wkl.*|.*tsangan.*|split_.*|.*test.*|.*ortho.*|.*dvorak.*|.*colemak.*|.*workman.*|.*hhkb.*|.*jis.*|.*rgb.*|1U|2u.*|2x.*|3x.*|5_2.*|5x6|600u.*|6u|700u.*|7u)$' \
    | grep -vE '^(all|debug|qwerty|perfmode|oled|pimoroni_trackball|i2c|hid|gamepad|check|emoji)$'
}

the_list

the_list | while read keymap ; do \
    find keyboards -type d -path '*'"/keymaps/$keymap" -and -name $keymap -and -not -path '*/onekey/*' \
        | while read keymap_path; do \
            git rm -rf $keymap_path; \
        done; \
    done

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@zvecr
Copy link
Member Author

zvecr commented Feb 15, 2024

keymaps:

0010
4brad
74th
amnobis
bastien-baloup_fr
belak
binary
bongo
brainfuck
budi
chrishoage
cijanzen
copypasta
copypasta_macfancy
core
encg
excessbread
FKML
flare576
flinguenheld
flipphone
fns
foureight84
grv_esc
had
iidx
j4ckofalltrades
jbarberu
jeandeaual
josjoha
joule-flow
kakunpc
killmaster
kinesish
king
kyleterry
lexworth
michal
midi_demo
mrkeebs
multi
nall
nic
noqmk
ocm
olivia
paulgali
prpro
rask
salicylic
salicylic_with_nafuda
salicylic_with_setta21
sample
satt
sawns
sgurenkov
sowbug
splitrs
superfell
swappedBottomRow
takashicompany
tucznak
utility_belt
wavebeem-gamepad
x123
xerpocalypse
zzeneg

@zvecr zvecr merged commit 5233a62 into develop Feb 15, 2024
2 of 3 checks passed
@zvecr zvecr deleted the prune_keymaps3 branch February 15, 2024 09:42
nuess0r pushed a commit to nuess0r/qmk_firmware that referenced this pull request Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants