Git Product home page Git Product logo

rapid-browser-tabs-for-alfred's People

Contributors

pochemuto avatar stuartcryan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rapid-browser-tabs-for-alfred's Issues

Firefox support

For anyone intersted in firefox support I created this workflow (which requires installing a Firefox extension).

The following quote from the README pushed me to do it, so thanks :)

As Firefox does not expose its tabs via Applescript, it is not able to be supported. If someone is a whizz at writing Firefox plugins and would like to collaborate on a plugin to get this to work please feel free to get into contact with me.

If @stuartcryan is still around, I'd be happy to help you steal the code from my workflow.

Half second pause before results show up

This is an awesome script, and I use it all the time!

One things I've noticed is that there's a several hundred millisecond delay between when I finish typing in my search query, and when results show up. It's totally livable, but I thought I'd check in and ask about it in case you knew the cause off-hand.

It appears to get longer if I have a bunch of tabs open, so it might just be the limits of processing power.

I don't know much Ruby, but that hasn't stopped me from hacking on Ruby scripts in the past. If you don't have time to investigate but can point me to where it might be worthwhile to look, I'm happy to spend a bit of time checking it out myself.

Thanks again for the awesome tool!

Just installed, got a "Retrieving tabs.." message and nothing else

hi,

I have just installed the workflow and when I search for a tab, the message "Retrieving tabs..." is stuck and does not show any result.

I firstly thought it was just a matter of time for Alfred to index the tabs, but after 30 minutes, it still says the same.

Stopped working

Installed it this morning and tried to do the custom favorites and couldn't get it to work. I deleted my addition to the favorite file but for some reason rbt isn't working for me anymore.

Below is the error message I'm getting.

MacOS 10.12.3
Alfred 3.3

[2017-02-22 10:58:31][ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in parse': (<unknown>): mapping values are not allowed in this context at line 7 column 10 (Psych::SyntaxError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in parse_stream'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in parse' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:in load'
from load_list.rb:86:in `

'

Investigate possibility of mass opening tabs based on a group name

While this is a function with some rather specific use cases, it would be great to be able to define an array of "group names" for each favourite.

Then (with another keyword), enter a group name and each one of those tabs will open one by one, think instantly loading a list of systems, or starting a standard list of tabs when you first start for the day.

Not sure if this is possible in the current code or not.

Non-latin query error

[ERROR: alfred.workflow.input.scriptfilter] Code 1: load_list.rb:53:in `=~': incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string) (Encoding::CompatibilityError)
    from load_list.rb:53:in `tab_matches_title?'
    from load_list.rb:59:in `tab_matches_query?'
    from load_list.rb:195:in `block in <main>'
    from load_list.rb:194:in `each'
    from load_list.rb:194:in `<main>'

Workflow silently fails

Hi,

was really eager to use this but unfortunately, after setup, the workflow silently fails and revert to google search

Mac OS X 10.11.6
Alfred 2

see:

hope it's fix-able

thanks

Doesn't work at all for me

I have followed the instruction to the letter, but I cannot get this script to work.

I have tried navigating to the workflow directory directly and running load_list.rb directly, and receive the following errors (I'm on ruby 2.3.0 freshly installed via brew):

With no parameters:

$ ruby load_list.rb
load_list.rb:17:in `<main>': undefined method `strip' for nil:NilClass (NoMethodError)

With one parameter "test":

ruby load_list.rb test
/Users/josh/Dropbox/Dev/Settings/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A8961C80-CDCD-44D5-8342-9FC7F1519779/browser_tabs/applescript_utils.rb:37:in `block in osascript': AppleScript error: osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Numerics.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist. (BrowserTabs::AppleScriptUtils::AppleScriptError)
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Satimage.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/XMLLib.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
osascript: OpenScripting.framework - scripting addition "/Users/josh/Library/ScriptingAdditions/YouHelper.osax" cannot be used with the current OS because it has no OSAXHandlers entry in its Info.plist.
    from /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/open3.rb:205:in `popen_run'
    from /usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/open3.rb:95:in `popen3'
    from /Users/josh/Dropbox/Dev/Settings/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A8961C80-CDCD-44D5-8342-9FC7F1519779/browser_tabs/applescript_utils.rb:32:in `osascript'
    from /Users/josh/Dropbox/Dev/Settings/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A8961C80-CDCD-44D5-8342-9FC7F1519779/browser_tabs/applescript_utils.rb:18:in `run'
    from /Users/josh/Dropbox/Dev/Settings/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A8961C80-CDCD-44D5-8342-9FC7F1519779/browser_tabs/commands/command.rb:49:in `run'
    from /Users/josh/Dropbox/Dev/Settings/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A8961C80-CDCD-44D5-8342-9FC7F1519779/browser_tabs.rb:62:in `run_command'
    from /Users/josh/Dropbox/Dev/Settings/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A8961C80-CDCD-44D5-8342-9FC7F1519779/browser_tabs.rb:31:in `tabs'
    from load_list.rb:18:in `<main>'

Not to familiar with Applescript or Ruby, so any help is much appreciated.

Workflow is getting mixed up between Alfred 2 in Application Support and Alfred 3

I am unable to change the config to /Users/tiffanywhite/Dropbox/RBT/ or to /Library/Application Support/Alfred 3/Workflow Data/com.stuartryan.alfred.rapidbrowsertabs/ as it automatically defaults to /Library/Application Support/Alfred 2/Workflow Data/com.stuartryan.alfred.rapidbrowsertabs/. I have deleted the Alfred 2 folder, yet, RBT recreates it. I've set up the config the way I needed to but no luck.

Not sure if I can fix it with my limited knowledge. Can you fix it?

Thanks.

Enable favourite searching by URL

Currently the favourites search only looks at the title and the keywords. It does not allow searching by the URL itself.

This is minor but would help round the search out for completeness.

Bookmarks instead of Favorites

Something that struck me as an obvious enhancement in many ways is to fallback to the Chrome bookmarks instead. Why?

  • Most new users of the workflow may already have bookmarks configured
  • They're much easier to manage straight in the browser and less error prone
  • We could throw away the YAML file configuration altogether and save time

Thanks for a great workflow.

tabs keyword fails: "every window doesn’t understand the “count” message"

When I try to use the tabs keyword, it fails with error:
Google Chrome got an error: every window doesn’t understand the “count” message
see debug output below
(using Chrome Version 51.0.2704.103 (64-bit) on El Capitan)
Any idea what has gone wrong?


Starting debug for 'Rapid Browser Tabs'

[2016-07-22 14:49:07][ERROR: input.scriptfilter] Code 1: /Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.6B59115C-DE86-4B67-9833-6ED5F95F38DF/browser_tabs/applescript_utils.rb:37:in block in osascript': AppleScript error: 119:619: execution error: Google Chrome got an error: every window doesn’t understand the “count” message. (-1708) (BrowserTabs::AppleScriptUtils::AppleScriptError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:217:inpopen_run'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:99:in popen3' from /Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.6B59115C-DE86-4B67-9833-6ED5F95F38DF/browser_tabs/applescript_utils.rb:32:inosascript'
from /Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.6B59115C-DE86-4B67-9833-6ED5F95F38DF/browser_tabs/applescript_utils.rb:18:in run' from /Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.6B59115C-DE86-4B67-9833-6ED5F95F38DF/browser_tabs/commands/command.rb:49:inrun'
from /Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.6B59115C-DE86-4B67-9833-6ED5F95F38DF/browser_tabs.rb:62:in run_command' from /Users/tim/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.6B59115C-DE86-4B67-9833-6ED5F95F38DF/browser_tabs.rb:31:intabs'
from load_list.rb:18:in `

'

Doesn't find tabs with words

Current realization doesn't support finding tabs with all words with query.
For example I have opened a lot of tabs and I should open tab with wiki vim. With 'vim' typed it show me all tabs with vim in title. But next I should get wiki page from them. 'vim wiki' breaks all.

2015-10-31 23 48 17
2015-10-31 23 48 30

Provide control key modifier to reload tab on load

Sometimes when going to an already open tab (such as the Alfred forums) it would be great to be able to use a control key modifier to not only open the tab, but open it and force a refresh of the page at the same time.

Errors logged from Safari when matching tab names

Although RBT appears to be work, I noticed that Console.app logs messages like this every time I type a key after the tabs keyword:

5/20/16 08:46:54.705 Safari[38461]: [<CompletionWindow 0x7f9f423a8480> valueForUndefinedKey:]: this class is not key value coding-compliant for the key orderedTabViewItems.
5/20/16 08:46:54.708 Safari[38461]: An exception was thrown during execution of an NSScriptCommand...
5/20/16 08:46:54.708 Safari[38461]: [<RoundedWindow 0x7f9f3ca8a6a0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key orderedTabViewItems.
5/20/16 08:46:56.349 Safari[38461]: An exception was thrown during execution of an NSScriptCommand...
5/20/16 08:46:56.349 Safari[38461]: [<CompletionWindow 0x7f9f423a8480> valueForUndefinedKey:]: this class is not key value coding-compliant for the key orderedTabViewItems.
5/20/16 08:46:56.352 Safari[38461]: An exception was thrown during execution of an NSScriptCommand...
5/20/16 08:46:56.352 Safari[38461]: [<RoundedWindow 0x7f9f3ca8a6a0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key orderedTabViewItems.

I realize this seems to be cosmetic, but it would be nice to avoid error messages like these from being logged if possible.

adding favorites

Thanks for creating and maintaining this very useful workflow.
I would like to add some favorites but I can't seem to figure out what you mean by rbsetup when you say "Run 'rbtsetup' and select "Set root config folder location".

Thanks in advance.

All tabs with empty query

Often I can't remember title of tab and would be useful to see all tabs before start typing query.
Now, it show only favorite sites.

Investigate feedback on settings initialisation and sync

Currently there is no feedback given as to the success/failure of the initialisation/synchronisation of the config files.

It would be good to push a notification to provide feedback to the user once this is completed.

(This was attempted prior to v1.0 release but did not make the final cut).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.