Code Monkey home page Code Monkey logo

pipette.jl's Introduction

Pipette: A Smoother Pipe Operator

If you love the Julia REPL and the pipe operator,

if you have a problem with typing the prickly " |> " sequence1,

and if no one else can help,

maybe you can hire Pipette and insert " |> " with double-tapping arrow-right [➔] at the end of the line:

julia> get_transmogrifying_iterator()#..now just double tap [➔]..

Voilà:

julia> get_transmogrifying_iterator() |> #<- ta ta-da TAAAA!

Alternatively, press [Ctrl+➔] to insert the string " |> " anywhere on a line.



Usage

  • The delay between [➔]-taps must be <300 milli-seconds to register as double-tap.

    It also must be >100 milli-seconds -- this avoids pipes galore when you keep pressing the cursor to reach the end of a line.

    You can configure this with

    julia> Pipette.set_doubletap_delay(from=100, to=300)
  • To tune this, find out your tapping speed and keyboard repeat delay with Pipette.tune_doubletap_delay().

  • To turn Pipette on or off, use Pipette.on() or Pipette.off(). To keep the [Ctrl+➔]-behavior, and just turn off the double-tap one, set the range to zeros.



Install

Just ]add Pipette and keep using Pipette.

To turn it on by default, you can modify .julia/config/startup.jl:

atreplinit() do repl
    try         @eval using Pipette  
    catch e;    @warn "Pipette startup error" e  end
end

(Pipette exports nothing, btw.)






Refs



Version History

  • 0.1 Initial version


Footnotes

Footnotes

  1. On a German keyboard, e.g., you need to type [Space] [AltGr+"|"] [Shift+">"] [Space].

pipette.jl's People

Contributors

umlet avatar

Stargazers

etpinard avatar Tim Kersey avatar Felipe Raimann avatar Henri Dehaybe avatar Clayton Kehoe avatar Jacob S. Zelko avatar Alexander Demin avatar Cameron Bieganek avatar  avatar

Watchers

 avatar  avatar

pipette.jl's Issues

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

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.