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

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

Open
for-coursera opened this issue Sep 14, 2017 · 0 comments
Open

Comments

@for-coursera
Copy link

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 :)

@for-coursera for-coursera changed the title Capturing a keypress (more of a Javascript question) qmarks vs. capturing a keypress (more of a Javascript question) Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant