question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It would be neat if pressing o would open a search bar like Vimium does in Chrome

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gggritsocommented, Oct 8, 2016

Looks like Hammerspoon is a better tool for this. I’m going to close this issue and post your example instructions in the wiki for visibility. Thank you for investigating this and posting a solution!

1reaction
dbmrqcommented, Oct 7, 2016

In case anybody’s interested, I added this to my .hammerspoon/init.lua and it binds : to the address bar and / to search:


hotkey.bind({"shift"}, ';', function()
    local app = hs.application.frontmostApplication()
    local element = hs.uielement.focusedElement():role()
    if app:name() == "Safari" and not string.find(element, "Text") then
        hs.eventtap.keyStroke({"cmd"}, "l")
    else
        hs.eventtap.keyStrokes(':')
    end
end)

hotkey.bind({}, '/', function()
    local app = hs.application.frontmostApplication()
    local element = hs.uielement.focusedElement():role()
    if app:name() == "Safari" and not string.find(element, "Text") then
        hs.eventtap.keyStroke({"cmd"}, "f")
    else
        hs.eventtap.keyStrokes('/')
    end
end)

Seems to be working very well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Create a Search Bar - W3Schools
Learn how to add a search box inside a responsive navigation menu. Search Bar. Home About Contact. Try it Yourself ». Create A...
Read more >
How to Add a Search Bar in HTML - PageDart
We look at how to add a search bar in HTML to your website and search connect ... We will add one of...
Read more >
How to Design the Perfect Search Bar for Your Website
You'll need to keep their expectations and comfort at the forefront of your design — here's how: 1. Include a text field and...
Read more >
Search box - Wikipedia
A search box, search field or search bar is a graphical control element used in computer programs, such as file managers or web...
Read more >
Search Bar using HTML, CSS and JavaScript - GeeksforGeeks
Every website needs a search bar through which a user can search the content of their concern on that page. A basic search...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found