lib/hook/hookapp.rb
# Select from a menu of available hooks and open using macOS `open`.
Select from a menu of available hooks and open using macOS `open`.
Select from a menu of available hooks and open using macOS ` open ` .
def open_linked(url)
    marks = get_hooks(url)
    if marks.empty?
      warn "No hooks found for #{url}"
    else
      res = select_hook(marks)
      unless res.empty?
        res.each {|mark|
          `open '#{mark[:url]}'`
        }
      end
    end
  end
def open_linked ( url ) marks = get_hooks ( url ) if marks . empty? warn "No hooks found for #{url}" else res = select_hook ( marks ) unless res . empty? res . each { | mark | ` open ' #{ mark [ :url ] } ' ` } end end end
Select from a menu of available hooks and open using macOS `open`.
Select from a menu of available hooks and open using macOS ` open ` .
url
<not_specific>