Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Git Surf
Search
Łukasz Korecki
October 13, 2013
Programming
70
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git Surf
Lightning Talk given at VimLondon Meetup, October 2013
Łukasz Korecki
October 13, 2013
Transcript
15 slides
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!
More Decks by Łukasz Korecki
See All by Łukasz Korecki
Clojure LA: Building type-safe Clojure services with HTTP, JSON and Avro
lukaszkorecki
0
27
Building a product with Clojure: Lessons Learned
lukaszkorecki
0
90
pkgr
lukaszkorecki
0
63
Emacs evil-mode
lukaszkorecki
1
110
Other Decks in Programming
See All in Programming
自宅サーバはどこまで再現できるのか - Proxmox VE上のVM環境をIaCとバックアップで戻してみた
youto
0
400
AI Augmentation Techniques with Liberty
ivargrimstad
1
500
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
280
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
16
9.3k
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
380
SODA - FACT BOOK(JP)
sodainc
1
40k
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
210
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
680
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
2.3k
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
350
Featured
See All Featured
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
470
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
670
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Google's AI Overviews - The New Search
badams
0
1.7k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Heart Work Chapter 1 - Part 1
lfama
PRO
11
37k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
60k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.3k
Become a Pro
speakerdeck
PRO
31
6.4k