File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 44- if $EDITOR env var is not set, provide fallback
55- increase ` open ` command reliability by first ` cd ` -ing to the current PWD
66- add links to related plugins to the readme
7+ - add screencast script to the repo
78
89### v0.0.2, Aug 02, 2014
910- add readme
Original file line number Diff line number Diff line change 1+ # Screencast script
2+
3+ 1 . Intro
4+ ========
5+ Let's demo tmux-open plugin.
6+
7+ Tmux open defines 2 copy mode key bindings: o and control-o.
8+ - o is a mnemonic for 'open' and it can open various files, directories and
9+ urls.
10+ - control-o opens files with the default text editor.
11+
12+ 2 . o - features
13+ ===============
14+ Let's first show the 'o' key functionality.
15+
16+ I'm in a git project so I can invoke 'git status'.
17+
18+ I want to open that example directory. I'll quickly highlight it using
19+ tmux copycat.
20+ Now I can press 'o' for opening.
21+
22+ You can see the directory is opened in the OS X Finder app - the default file
23+ manager.
24+
25+
26+ I'm also curious about that 'tmux.pdf' file too.
27+ Again, I'll highlight it.
28+ And then press 'o'.
29+
30+ Oh cool, it's a book about tmux.
31+
32+
33+ Nice thing with 'o' key binding is that it works for url's too.
34+ I'll start a local web-server that serves current project README file.
35+ I'll highlight the url,
36+ - press 'o'
37+ - and the url is opened in the default web browser.
38+
39+ 3 . ctrl-o - features
40+ ====================
41+ Control-o has a more narrow scope: it can open any file in the default text
42+ editor.
43+
44+ I'll invoke git status again.
45+ There I have a text file I want to open. I'll highlight it,
46+ and press ctrl-o.
47+
48+ As you can see, the file is opened in vim, which is my default text editor.
49+
50+ 4 . Outro
51+ ========
52+ That's it for this screencast. I hope you'll find tmux-open plugin useful.
You can’t perform that action at this time.
0 commit comments