Code Monkey home page Code Monkey logo

cheats's Introduction

Linkedin Blog

🚘 β€Ž I work at Uber, where we take on big problems to help drivers, riders, delivery partners, and eaters get moving in more than 600 cities around the world.

πŸ’Ά β€Ž I also helped build Nubank, a fintech which now has millions of customers and is revolutionizing banking and financial products.

✨ β€Ž My most popular repository on GitHub is navi, with 12k+ stars.

Github Stats

cheats's People

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

cheats's Issues

Please don’t sort by length

; example.cheat
% example

# the 1st cmd
git xxx

# the 2nd cmd
git yyyyyyyyyyyyyyyyy

# the 3th cmd
git zzzzzzz

Now I input navi query example, The preliminary list likes this:

example     the 2nd cmd       git yyyyyyyyyyyyyyyyy
example     the 3th cmd        git zzzzzzz
example     the 1st cmd         git xxx

But I hope it likes this :

example     the 1st cmd         git xxx
example     the 2nd cmd       git yyyyyyyyyyyyyyyyy
example     the 3th cmd        git zzzzzzz

I can't control the length of the command, if I have many commands , it will make me trouble to find it

Add license

Nice project! However, to ensure the contents and community contributions are actually free (as in freedom), this repository should have a license.

For instance, cheat uses a CC-0 license (adopted in cheat/cheatsheets#2), and tldr-pages uses CC-BY (adopted in tldr-pages/tldr#3687).

Default values and cycling backwards through parameters

Two quick questions for you:

  1. I'd often like to see a default value appear for a variable with the option of typing to replace it with something else. I came up with the following as a way to e.g. optionally select a minimum_length of 16, but do you know of a more elegant way to do this?
    $ minimum_length: echo "16 " | tr ' ' '\n'

  2. Sometimes I use CLI commands with a lot of parameters and after entering a few, I might see that I made a mistake in an earlier one and want to go back to change it. Is there a way to do this in the interactive CLI tool? (A logical way to do this would be Shift+Tab since that's the convention used in a lot of software).

P.S. You should consider starting your documentation with Hey! Listen! πŸ˜‚

Add vim cheatsheet

Not sure if this would be the place to ask this, but I was wondering if you could add a Vim cheatsheet.

Is valid add boolean value after `--multi` option like `--multi true`?

In your cheats example, you use --multi true

cheats/code/git.cheat

Lines 133 to 134 in 1a2b072

$ unstaged_files: git status --untracked-files=no -s --porcelain | awk '{print $NF}' --- --multi true
$ changed_files: git status --untracked-files=all -s --porcelain | awk '{print $NF}' --- --multi true

documentation:

https://github.com/denisidoro/navi/blob/639e1dc46a4cf244b23dcbb7665a12a8051e0bb1/docs/cheatsheet_syntax.md#L69-L77

In addition, it's possible to forward the following parameters to `fzf`:
- `--multi`;
- `--header-lines <number>`;
- `--delimiter <regex>`;
- `--query <text>`;
- `--filter <text>`;
- `--header <text>`;
- `--preview <bash_code>`;
- `--preview-window <text>`.

But when test with the following cheat with

  1. "--multi" --> the fzf output as expected
  2. "--multi true" --> the fzf output empty
% example

# select number(s) then output
echo <numbers>

$ numbers: seq 3 --- --multi true

Run the following command to check:

navi --query "select number(s) then output"

question

It seems --multi true is wrong, use --multi alone instead.

version

$ navi --version
navi 2.15.1

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.