summaryrefslogtreecommitdiff
path: root/keyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb
diff options
context:
space:
mode:
authorDanny <nooges@users.noreply.github.com>2019-02-12 19:57:24 -0500
committerDrashna Jaelre <drashna@live.com>2019-02-12 16:57:24 -0800
commitb2ee290c9f506e42dd9c4577c8147646c405aeb0 (patch)
tree4338c3ee37d2f8380c24624a24d8a4cb81d54693 /keyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb
parent994852712dbd183e2c764d624ae8ba7d3efb385a (diff)
[Keyboard] Move Keebio boards to own folder (#5109)
* Move boards into keebio folder * Rename keymap * Update BDN9 files * Update BFO-9000 files * Update Chocopad files * Update Dilly files * Update Fourier files, collapse rev1 into main * Update Iris files * Update Laplace files * Update Levinson files, fix buswerks keymap * Update Nyquist files * Fix keymap issues * Update Quefrency files * Update Rorschach files * Update TF68 files * Update Viterbi files * Update Viterbi files * Update Wavelet files * Reformat default layout * Fix up default folder for Iris * Remove already defined aliases
Diffstat (limited to 'keyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb')
-rwxr-xr-xkeyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb40
1 files changed, 0 insertions, 40 deletions
diff --git a/keyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb b/keyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb
deleted file mode 100755
index 7285b008a4..0000000000
--- a/keyboards/nyquist/keymaps/hexwire/keymap_to_readme.rb
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env ruby
-
-class KeymapConverter
-
- def initialize(filename)
- @filename = filename
- @mode = :search
- end
-
- def read_keymaps
- lines = IO.readlines(@filename)
- lines.each { |line| parse_line line[0..-2] }
- end
-
- def parse_line(line)
- case @mode
- when :search
- if line =~ /KC_KEYMAP/
- puts "### #{line}"
- puts "```"
- @mode = :parse
- end
- when :parse
- if line =~ /\)/
- @mode = :search
- puts "```\n\n"
- else
- line = line[4..-1]
- line.sub!(/(,)^-/m, "|")
- line.sub!(/( {4})/, " |")
-
- puts line
- end
- end
- end
-
-end
-
-converter = KeymapConverter.new('keymap.c')
-converter.read_keymaps