Jump to content

Search the Community

Showing results for tags 'Autocomplete'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting

Categories

  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 10 results

  1. Hi all, Does this exist already: An Alfred workflow that will simply autocomplete a typed word from a textfile list of special words? If not, does anyone have an idea of how to achieve this? I'm most comfortable in Python so I could probably start making this myself if somebody gave me some pointers. The use case is auto-completion of references stored in a .bib file when I write academic articles in Typora using pandoc-crossref for references, however I have to remember all references in my head since there is no autocompletion from linked .bib file. (I have asked for this before, however I was probably being too specific in my request, so now I'm making it more general just as an autocompletion system linked up to a file.)
  2. Hi, I'm looking to build quite a simple workflow in Alfred that simply can suggest / autocomplete "citekeys" when I start typing, using a .bib file as it's basis. A .bib file is a BibTeX reference list, which is a plain text file containing a list of references formatted by the following scheme: @article{Salimans2017, abstract = {We explore the use of Evolution Strategies (ES), a class of black box optimization algorithms, as an alternative to popular MDP-based RL techniques such as Q-learning and Policy Gradients. Experiments on MuJoCo and Atari show that ES is a viable solution strategy that scales extremely well with the number of CPUs available: By using a novel communication strategy based on common random numbers, our ES implementation only needs to communicate scalars, making it possible to scale to over a thousand parallel workers. This allows us to solve 3D humanoid walking in 10 minutes and obtain competitive results on most Atari games after one hour of training. In addition, we highlight several advantages of ES as a black box optimization technique: it is invariant to action frequency and delayed rewards, tolerant of extremely long horizons, and does not need temporal discounting or value function approximation.}, archivePrefix = {arXiv}, arxivId = {1703.03864}, author = {Salimans, Tim and Ho, Jonathan and Chen, Xi and Sidor, Szymon and Sutskever, Ilya}, doi = {10.1.1.51.6328}, eprint = {1703.03864}, file = {:Users/gandalf/Library/Mobile Documents/com{\~{}}apple{\~{}}CloudDocs/-Sync/Mendeley/Salimans et al/Salimans et al. - 2017 - Evolution Strategies as a Scalable Alternative to Reinforcement Learning.pdf:pdf}, isbn = {3-540-63746-X}, issn = {1744-4292}, pages = {1--13}, pmid = {27474269}, title = {{Evolution Strategies as a Scalable Alternative to Reinforcement Learning}}, url = {http://arxiv.org/abs/1703.03864}, year = {2017} } This example above is just one entry, there are typically many such entries in a file. The important part is the very first value near the top which is the citekey, here "Salimans2017". What I want is that I start typing "Sali" in Alfred, and that it suggests "Salimans2017" and paste it to the current text cursor in format "[@Salimans2017]". As a bonus feature I'd be nice to be able to search for a title, then getting the citekey for the selected match. Does anyone have any good idea of how to construct this workflow? It basically boils down to making suggestions / autocompletion for a list of keywords stored in a plaintext file, and then pasting these keywords in a slightly reformatted way. I've put an example of a .bib file with two references here: https://gist.github.com/GandalfSaxe/4ca72ed004b832f4721e5274e2f1bb48
  3. Hi all, this is my first workflow, please let me know what you think. Netflix Alfred Workflow Website: https://github.com/dkarter/AlfredNetflixSearchWorkflow Netflix API (unofficial): https://github.com/dkarter/NetflixScraperAPI Version: 1.5 (Sept 20, 2014) License: MIT Disclaimer: I am not connected and or affiliated with Netflix, this code was written purely for educational purposes and with no other intent, warranty or purpose. Use at your own risk and responsibility. Installation Please use Packal to download the workflow - it will provide AutoUpdate functionality. http://www.packal.org/workflow/netflix-search Usage Searching for a movie/tv-show nf [name of movie] Netflix Search Workflow will automatically suggest matching titles. Pressing enter (⏎) will open the Netflix player in your browser and start playing the movieIf you are opening a previously watched TV show/movie it will continue where you stopped last Pressing Command (⌘) and Enter (⏎) will open the movie page which includes synopsis, cover, reviewsif the title is a TV show it will allow you to select the episode you would like to watch on that page Searching for an actor/director etc nf ppl [name of person] Netflix Search Workflow will automatically suggest matching names based on roles in movies in Netflix. Press enter (⏎) to open a page with a list of movies by/with that person
  4. Quite a simple workflow to search articles on wikipedia (English version). Inspired by a similar workflow here, but it appears the download link is broken... Based on feedback from folks, I have an updated version of this workflow. It allows you to Search against regional Wikipedia sites. E.g. to search against German wikipedia, type "w de what to search for" i.e. "w <language code> <search term>" Language codes are from Wikipedia. You can also configure it to search against just one default Wikipedia by modifying the script filter as mentioned in the workflow. Against each result, a snippet of the text from the wiki page is displayed Remember, you can press the Shift key against a search result to quickly view the associated web page from within Alfred. Try the new version and let me know your comments. Q: How can I set one language as the default? Open the workflow's Script Filter in Alfred, and follow the steps mentioned in there.
  5. OK, so what I want is to be able to type "app" with a name of an application installed on my system, to show the version of the app in the Alfred results ... much like how in Yosemite we can type an app name and have the version/purchased date/etc listed on the right pane of Spotlight. I have had to go back to Mavericks for now as Yosemite feels so unfinished on my system. I LIKE how in Alfred I can TAB to complete an application's name with a file filter, but I can not display results of a script with a file filter unless I use large text. I have a workflow (temp) that will use the file filter and run an osa-script to output the application version to large text: get version of application "{query}" BUT, I'd like to be able to get autocomplete into a script filter if I could ... is this possible?
  6. Hi, Sorry if I missed it, but I can't find this information in docs.. It seems to me that knowledge is not applied for valid=no and autocomplete results Let's take an example: I set uid with playlist name, valid='no' and autocomplete for playlist "La Musique de Paris Derniere": <item uid="La Musique de Paris Derniere" valid="no" autocomplete="Playlist▹spotify:user:lottademoulin:playlist:60eL7pH4yG8Jb2LVOOuMNA▹"><arg/><title>
  7. This is a workflow to search the swedish streaming service Viaplay (sports, movies, etc). Credits to Peter Okma for creating the Wikipedia plugin I used as template. This is a workflow with two keywords: via <searchterm> (search all viaplay content) viasport (view sports schedule) Download here: https://www.dropbox.com/s/0pt8vytbkv2pigc/ViaplayAutoComplete.alfredworkflow Disclaimer: This is not in any way affiliated with Viaplay or Viasat and delivered as is.
  8. I've completely rebuilt redwall_hp's original IMDB Search Suggest workflow to include more information in results, a fallback for longer search queries using a cache, and a new icon. I've also changed the keyword to i but you can easily change that to imdb or whatever you like. I hope you'll enjoy! Download .alfredworkflow GitHub
  9. Hello, I spend my days building and administrating Wordpress websites for companies. Today i am administrating over 100 sites, and it is getting more every day. My request for a workflow is quicker access to different admin-areas in wordpress of the sites. Lets say i have these three sites: www.coolpage1.com www.coolpage2.com www.coolpage3.com All of the sites admin-area can be accessed by adding "/wp-admin" at the end of the url. Today i use the custom search that is built into Alfred with the {query}. For example i write the keyword "admin" followed by "coolpage2". This works fine for opening www.coolpage2.com/wp-admin. The problem with this method for me though is: 1. Its is a slow process to add all the 100 sites in the custom search 2. I need to complete the looong query "coolpage2" (i would like it to autocomplete). 3. I would like to easily add shortcuts to other areas of the Wordpress Dashboard, not just /wp-admin. I would want to easily bring up "new post", "widgets", "menus" and more (which always has the same url-endings on every page), but custom search forces me to repeat the process thousands of times. So could i make a script that could do the following: 1. Enter a keyword ("wg" for widgets, "wm" for menus, "wn" for new post and so forth) 2. Start typing a query that autocompletes based on an overview of sites ("coolpage1", "coolpage2", "coolpage3") and open the correct URL based on keyword and query 3. Add a new sites quickly and easily to the "autocomplete-database" by typing keyword "addpage" followed by "coolpage4" I have no idea how to do this, but it would speed up my workday alot! Anyone able to help me with this? Anders
  10. I've been working on a brief workflow that grabs a list of FTP favorites from Transmit and serves them up as Alfred results. Ideally, actioning any one of these results would mount the specified server as a external drive. So far though, I've been unable to get Alfred to load the generated XML as results. Below, I've provided some details that might be useful to pin-point the issue: The workflow is PHP-based, though it also relies on a bit of Applescript to fetch the list of favorites from Transmit. (Much of the code & concepts come courtesy @jdfwarrior!) I thought the issue might be related to the Applescript – returning invalid XML, or maybe nothing at all. I tried writing the generated XML to a file (instead of echoing it back to Alfred, as per the code below.) The output seemed valid but I am still unable to get Alfred to load the XML into its results list! It just gets stuck on the pre-defined loading text. I hope this all makes sense. Any and all help is much appreciated! PHP: /* FOLLOWING CODE IS ENTERED DIRECTLY INTO ALFRED'S "SCRIPT FILTER" ** EDITOR AND ISN'T WRAPPED IN <?PHP?> TAGS. THE FILTER REQUIRES A ** SPACE-SEPARATED ARGUMENT, THE INTERPRETER IS SET TO PHP, AND I ** LIMITED THE 'ESCAPE {QUERY}' OPTION TO DOUBLE QUOTES AND DOLLARS. */ require_once('extension_utils.php'); $utils = new ExtensionUtils(); $results = array(); $query = stripcslashes("{query}"); $favesGet = exec('osascript transmit_actions.scpt'); $favesObj = explode(', ',$favesGet); $i = 0; foreach( $favesObj as $fave ): $i++; $item = array( 'uid' => 'fave-'.$i, 'arg' => $fave, 'title' => $fave, 'subtitle' => 'Mount '.$fave.' as volume...', 'icon' => 'icon.png', 'valid' => 'yes' ); array_push( $results, $item ); endforeach; if ( count( $results ) > 0 ): echo $xml; endif; /* IN ORDER TO TEST/DEBUG THE XML OUTPUT ** I REPLACED THIS FINAL IF-STATEMENT WITH ** THE FOLLOWING CODE: */ // $xml = $utils->arrayToXml($results); // $path = "output.txt"; // $file = fopen($path, 'w') or die("can't open file"); // fwrite($file,$xml); // fclose($file); Applescript: -- FILE NAME: transmit_actions.scpt -- -- APPLESCRIPT THAT RETURNS A LIST OF THE -- NAMES OF FTP FAVORITES FROM TRANSMIT: --------------------------------------------- set names to {} tell application "Transmit" repeat with fave in favorites set faveName to name of fave set names to names & faveName end repeat end tell tell application "Transmit" to quit return names XML Output: (Abbreviated and formatted...) <?xml version="1.0"?> <items> <item uid="fave-1" arg="Christian et Christine"> <title>Christian et Christine</title> <subtitle>Mount Christian et Christine as volume...</subtitle> <icon>icon.png</icon> <valid>yes</valid> </item> <item uid="fave-2" arg="Clifford Wright"> <title>Clifford Wright</title> <subtitle>Mount Clifford Wright as volume...</subtitle> <icon>icon.png</icon> <valid>yes</valid> </item>
×
×
  • Create New...