GithubHelp home page GithubHelp logo

gifl's Introduction

Gifl: Google I'm Feeling Lucky URL Grabber

Textmate sure was a swift kick in the ass for a lot of the editors: bundles, integration, carpal-crucifying key bindings? Yet the old ways remain seductive and in the expanse between Textmate 1.0 and Textmate 2.0 alpha, many found themselves picking up the tried-and-true editors and moving them to meet up with features they liked about Textmate.

Lack of this feature was keeping my friend Daniel Miessler from converting to Vim as his blogging platform -- no more!

This plugin wraps a term set in a URL derived from the term's "I'm feeling lucky" URL. This is great for blogging or referencing known / famous URL identities.

Configuration

g:LuckyOutputFormat : set to "markdown" or "html" for link formatting

Examples

Notation

  • is \
  • * is cursor position
  • | | denote visual selection areas

OK, the examples already

*lindsay lohan
\gifl2e
[lindsay lohan](http://www.myspace.com/lindsaylohan*)

alternatively:

*Zooey Deschanel  # v2e
|Zooey Deschanel| # \gifl
[Zooey Deschanel](http://en.wikipedia.org/wiki/Zooey_Deschanel*)

If you like angle brackets:

:let g:LuckyOutputFormat='html'
*Bazinga!  # \gifl$
<a href=http://www.urbandictionary.com/define.php?term=bazinga>Bazinga!</a>

Installation

I'm using this with Janus by Yehuda and Carl so installation was super-easy:

`cd ~/.janus`
`git submodule add git://github.com/sgharms/GIFL.git gifl`

Restart Janus and you're good to go.

Status

Very, very, very alpha. Report issues here for me to repair.

Author

Steven G. Harms (@sgharms)

Thanks

Steve Losh: Author of Learn Vimscript the Hard Way, which I cribbed from to get this working.

gifl's People

Contributors

mutewinter avatar

Stargazers

Craig E. Shea avatar Romuald Bruno Aquinas avatar  avatar mt3 avatar

Forkers

ecerulm

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.