Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mutewinter/gifl
Add "wrap terms in google I'm feeling lucky url" à la Textmate
https://github.com/mutewinter/gifl
Last synced: 27 days ago
JSON representation
Add "wrap terms in google I'm feeling lucky url" à la Textmate
- Host: GitHub
- URL: https://github.com/mutewinter/gifl
- Owner: mutewinter
- License: mit
- Created: 2012-08-04T17:50:34.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2021-07-31T16:06:38.000Z (over 3 years ago)
- Last Synced: 2024-04-14T14:32:05.904Z (7 months ago)
- Language: Vim script
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://danielmiessler.com/) 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$
Bazinga!# Installation
I'm using this with [Janus by Yehuda and Carl](https://github.com/carlhuda/janus) 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](http://stevengharms.com)
([@sgharms](http://twitter.com/sgharms))# Thanks
[Steve Losh](http://stevelosh.com/): Author of [Learn Vimscript the
Hard Way](http://learnvimscriptthehardway.stevelosh.com/), which I
cribbed from to get this working.