Skip to content

qmarks vs. capturing a keypress (more of a Javascript question) #217

@for-coursera

Description

@for-coursera

Since I use qmarks quite a lot, I've made this little selector in case I forgot where exactly my quickmarks are pointing to:

javascript <<EOF
function showActQmarks(){
    dactyl.execute("qmarks");
    // get a qmark
    q = prompt("Visit..?");
    dactyl.execute("normal <Esc>");
    // abort if no input provided
    if (q == null || q == "") {
        return;
        }
    // navigate
    dactyl.execute("normal " + "go" + q);
}
EOF

However, this also made me wonder, if it's possible to capture a key pressed by a user after executing the :qmarks command without that ugly prompt method?

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions