Giter Club home page Giter Club logo

tldr-alfred's Introduction

tldr-alfred

Alfred workflow for tldr

Usage

Type tldr {command}(eg: tldr rm) to search your command.

It automatically updates every seven days. Or you can just type tldr -u to manually update the command list.

The default platform is osx. You can type tldr -o(eg: tldr apt-get -o linux) to specify a platform.

License

MIT

tldr-alfred's People

Contributors

cs1707 avatar onesuper avatar somuchrice avatar waldyrious 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

tldr-alfred's Issues

插件相当好用,提两个建议~

1.命令的描述不要出现在下拉的菜单里(感觉会降低效率)
2.实现best-effort匹配,例如用户输入m以后下面就可以显示mv的命令

Thanks

在Readme中添加tldr的链接

tldr-pages/tldr#931

We sure could (feel free to submit a PR). But I feel it would be only fair for the tldr project to be linked to from their README as well.

可以 readme 中提及 tldr 项目 ,然后给 tldr 提一个 PR,把这个项目的地址加入它们的 readme~

Can’t install with Alfred 3.5.1

Hej,

I would love to use this Alfred workflow 💖
Sadly I’m not abele to install it using Alfred 3.5.1 on Mac OS 10.12.6

Tried to double-click tldr.alfredworkflow as well as dragging the file to the workflows list in Alfreds preferences.

It just don’t appear in the workflows list and therefor and doesn’t work.

Cheers, Michael

Add Homebrew

Enhancement request:
It would be great to add homebrew entries to TLDR

This is a good resource to draw from: https://devhints.io/homebrew

I suggest the following:
brew search (search for available packages)
brew install
brew outdated (What’s due for upgrades?) (I personally forget this one!)
brew list (List installed)
brew upgrade
brew cask list (List installed casks)
brew cask upgrade (Upgrade all installed casks)

Get error when trying to run it

I tried to type tldr ls and got this in console:

[2018-01-14 15:59:00][ERROR: input.scriptfilter] Code 1: Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "tldr.py", line 47, in query
    rowList = parse_man_page(command)
  File "tldr.py", line 142, in parse_man_page
    page_path = find_page_location(command)
  File "tldr.py", line 65, in find_page_location
    index = json.load(f)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")

Not working: Error Code 1 Traceback

Installed the latest version of the workflow. Got this error:

[01:07:48.165] Web Development tldr[Script Filter] Queuing argument 'mv'
[01:07:50.673] Web Development tldr[Script Filter] Queuing argument 'm'
[01:07:50.830] Web Development tldr[Script Filter] Queuing argument ''
[01:07:51.304] Web Development tldr[Script Filter] Script with argv '(null)' finished
[01:07:51.309] ERROR: Web Development tldr[Script Filter] Code 1: Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "tldr.py", line 46, in query
    rowList = parse_man_page(command)
  File "tldr.py", line 111, in parse_man_page
    page_path = find_page_location(command)
  File "tldr.py", line 63, in find_page_location
    encoding='utf-8') as f:
IOError: [Errno 2] No such file or directory: '/Users/Username/Library/Application Support/Alfred/Workflow Data/com.chedanji.tldr/tldr/pages/index.json'
[01:07:51.711] Web Development tldr[Script Filter] Script with argv '(null)' finished
[01:07:51.719] Web Development tldr[Script Filter] <?xml version="1.0" ?><items><item arg="Please input" autocomplete="" uid="1" valid="no"><title>Please input</title><subtitle/><icon>icon.png</icon></item></items>
$ which git
/usr/local/bin/git
$ where git 
/usr/local/bin/git
/usr/bin/git

No problem using tldr in zsh/iTerm2

feature request: token replacement

since tldr has a standardized token syntax: {{token}}

it would be awesome if typing tldr cat "blah", would do token replacement for the examples.

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.