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
65
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
23
Building a product with Clojure: Lessons Learned
lukaszkorecki
0
87
pkgr
lukaszkorecki
0
53
Emacs evil-mode
lukaszkorecki
1
99
Other Decks in Programming
See All in Programming
print("Hello, World")
eddie
1
520
HTMLの品質ってなんだっけ? “HTMLクライテリア”の設計と実践
unachang113
4
2.7k
Go言語での実装を通して学ぶLLMファインチューニングの仕組み / fukuokago22-llm-peft
monochromegane
0
120
250830 IaCの選定~AWS SAMのLambdaをECSに乗り換えたときの備忘録~
east_takumi
0
380
アプリの "かわいい" を支えるアニメーションツールRiveについて
uetyo
0
220
「待たせ上手」なスケルトンスクリーン、 そのUXの裏側
teamlab
PRO
0
480
Flutter with Dart MCP: All You Need - 박제창 2025 I/O Extended Busan
itsmedreamwalker
0
150
Performance for Conversion! 分散トレーシングでボトルネックを 特定せよ
inetand
0
120
デザイナーが Androidエンジニアに 挑戦してみた
874wokiite
0
280
Azure SRE Agentで運用は楽になるのか?
kkamegawa
0
2k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
330
Processing Gem ベースの、2D レトロゲームエンジンの開発
tokujiros
2
120
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.9k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
840
Testing 201, or: Great Expectations
jmmastey
45
7.6k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
Writing Fast Ruby
sferik
628
62k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Six Lessons from altMBA
skipperchong
28
4k
How to Ace a Technical Interview
jacobian
279
23k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
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!