Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Git Surf
Search
Łukasz Korecki
October 13, 2013
Programming
0
62
Git Surf
Lightning Talk given at VimLondon Meetup, October 2013
Łukasz Korecki
October 13, 2013
Tweet
Share
More Decks by Łukasz Korecki
See All by Łukasz Korecki
Clojure LA: Building type-safe Clojure services with HTTP, JSON and Avro
lukaszkorecki
0
18
Building a product with Clojure: Lessons Learned
lukaszkorecki
0
82
pkgr
lukaszkorecki
0
50
Emacs evil-mode
lukaszkorecki
1
95
Other Decks in Programming
See All in Programming
ONE WEDGE_Company_Information
1wedge
0
180
Material 3で Material 2ぽい見た目にする
numeroanddev
2
250
CSRF対策のやり方、そろそろアップデートしませんか / Update your knowledge of CSRF protection
hiro_y
25
15k
上手な探索的テストとその上達方法について
matsu802
4
660
Parallel Socket Communication in Swift
s_shimotori
0
260
PHPerKaigi 2024〜10年以上動いているレガシーなバッチシステムを Kubernetes(Amazon EKS) に移行する取り組み〜
tshinowpub
1
220
品質が高いコードって何?Rev2.1
ickx
1
490
Swiftの型推論を学ぼう | Let's Learn About Type Inference in Swift
omochi
2
740
Why 1 + 1 = 2 in Swift?
1plus4
1
250
Deno に Web 標準 API を実装する / Implementing Web Standard API to Deno
petamoriken
0
350
Compiling Python to WebAssembly with py2wasm
syrusakbary
0
140
孤独のCTOグルメという やや奇抜な企画をやった目的と効果
shoheimitani
3
1k
Featured
See All Featured
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
185
15k
Docker and Python
trallard
33
2.6k
How To Stay Up To Date on Web Technology
chriscoyier
781
250k
GitHub's CSS Performance
jonrohan
1023
450k
Mobile First: as difficult as doing things right
swwweet
215
8.5k
Stop Working from a Prison Cell
hatefulcrawdad
265
19k
Keith and Marios Guide to Fast Websites
keithpitt
407
22k
The Pragmatic Product Professional
lauravandoore
24
5.7k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
Imperfection Machines: The Place of Print at Facebook
scottboms
257
12k
Atom: Resistance is Futile
akmur
258
25k
Transcript
git, git-browse, fugitive, vim and oh my (VimLondon, October 2013)
Łukasz Korecki @lukaszkorecki http://lukasz.korecki.me
...actually! git-browse has been renamed to git-surf (old repo link
still works though) https://github.com/lukaszkorecki/git-surf
Problem • I’m editing a file, versioned in git, backed
by GitHub • I just found a confusing method • Time to ask questions...
Old (busted) way • Go to GitHub • Click some
links to find the project, • Navigate to the file • Highlight the lines you’re interested in • Copy the url and post it to your team chat/email/whatever
Better Install hub (https://github.com/github/hub) • hub browse • Opens repository
on GitHub • Navigate to the file...
hub problems • Ruby • Everything + kitchen sink •
API calls
How about…? git surf -r20,25 path/tofile/ok.py
...or maybe? Vim, with Fugitive :Git surf -r20,30 % Visual
mode - select offending lines <leader>b
git surf? Enter git-surf • Unix! One thing well (well…)
• Depends only on coreutils (bash, awk, sed) • Fast
git surf URLs for: - repository - file - commit
- pull requests (existing/new) - branch comparison Pipeable output Works well with terminals (C+click, urxvt’s url matcher)
In the beginning Started as a hacky function in vimscript
(yay)
In the beginning (I lost the source though)
Bash? • VMs (Vagrant) • Raspberry Pi(s) • Linode as
a development server • git is ~35% shell
Surf! • Only supports GitHub urls • Has tests •
Has vim integration (duh) https://github.com/lukaszkorecki/git-surf
Thanks!