Skip to content

Append rather than overwrite layout file #12

@jdwapman

Description

@jdwapman

I like to set up my layout file with comments about what my macro commands do. As an example of what my layout1.txt file might look like:

# Fn key remappings.
# Remap layers so you have to hold "FN" to use fn functions.
# Otherwise, defaults to media keys
[F1]>[mute]
[F2]>[vol-]
[F3]>[vol+]
[F4]>[play]
[F5]>[prev]
[F6]>[next]
fn [lwin]>[lalt]
fn [lalt]>[lwin]
fn [mute]>[F1]
fn [vol-]>[F2]
fn [vol+]>[F3]
fn [play]>[F4]
fn [prev]>[F5]
fn [next]>[F6]

# Use this to make the "Fn" key hold-only
[hk9]>[fnshf]
fn [hk9]>[fnshf]

# Take a screenshot with the "print screen" key (Mac only)
{prnt}>{-lshft}{-lctrl}{5}{+lshft}{+lctrl}

# Lock the screen with the "ScrLck" key (Mac Only)
{scrlk}>{-lctrl}{-lwin}{q}{+lctrl}{+lwin}

# Swap alt and command on Mac
[lwin]>[lalt]
[lalt]>[lwin]

However, I find that when I use the SmartSet app or by assigning a macro directly on the keyboard (useful because I often don't know the config text to set up), this completely mangles my prior organization and strips out all the comments. Could you please update your app/firmware to append new macros to the end of the file? And maybe just comment out any prior uses with a "#" to signify that they're no longer valid, but without deleting them completely?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions