• Stars
    star
    261
  • Rank 156,630 (Top 4 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 12 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Text snippets for the command line

Sheet

Easily create and access snippets of text from your terminal. sheet is your own personal wiki.

Build status

gem install sheet

Examples:

sheet           # with no arguments it will just list all your sheets.
sheet list      # lists all your sheets. Equivalent to running sheet with no arguments. Aliased to sheet ls.
sheet git       # opens git sheet
sheet new git   # creates git sheet
sheet edit git  # edit git sheet
sheet copy git  # Copies content of the sheet to the clipboard. Aliased to sheet cp

Use sheet new <term> to create your first sheet. Useful for jotting down commands that you use often but somehow never remember.

Opening urls

Found a great cheat sheet online about jquery or your favorite language? I've got you covered.

When writing your snippet, you can use this special format to automatically open a url when opening your sheet:

url: http://example/com

You can open mulitple urls at once by specifying each url in a new line.

url: https://github.com/oscardelben
url: http://example.com

Please note that to open urls, sheet will use the open command on mac os x and xdg-open in linux and cygstart in cygwin. Patches welcome for other systems.

Copying sheets

sheet will use either pbcopy or xclip to copy the content of a sheet to the clipboard, make sure you have one of those installed (or open an issue indicating another copy program).

Behind the scenes

sheet stores your sheets in text files in the ~/.sheets directory. You can go there and modify the files manually if you desire, or you can source them into version control and share them across multiple systems.

For writing files, sheet looks for the $EDITOR global variable, and will raise an error if no editor was found.

Contributing to sheet

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright (c) 2012 Oscar Del Ben. See LICENSE.txt for further details.

More Repositories

1

firebase-ruby

Ruby wrapper for Firebase
Ruby
688
star
2

Color-Picker-Pro

Color Detection Tool for Designers and Developers
Objective-C
506
star
3

rawler

Rawler is a tool that crawls the links of your website
Ruby
248
star
4

words-about-code

My technical blog
172
star
5

RailsOneClick

Rails One Click installer for Mac Os X
Objective-C
157
star
6

DateCalculations

Date Calculations for Cocoa Inspired by Ruby on Rails
Objective-C
125
star
7

git-diff-grep

Run grep across git diffs history
Shell
93
star
8

github-trends

Provides a RSS Feed for most watched and most forked repos on Github
Ruby
43
star
9

Mongo-Shortener

Shortener application that uses MongoDB, cucumber and rspec
Ruby
40
star
10

CameraGun

Point And Fire Augmented Reality App for iPhone
Objective-C
37
star
11

MenuBarApplicationTemplate

A common template for kick starting your menu bar mac application
Objective-C
36
star
12

iPhoneCalculator

Proof of Concept iPhone Calculator App
Objective-C
34
star
13

GithubBrowser

A Github Browser For iPad
Objective-C
27
star
14

json_formatter

Simple JSON formatter command line utility
Ruby
22
star
15

CocoaNavigationGestures

Recognize two and three fingers scroll and swipe gestures in Leopard and Lion
Objective-C
21
star
16

NSScreen-PointConversion

Utility class for working with multiple screens in Cocoa
20
star
17

rubyxp

Ruby regular expression tester
Ruby
16
star
18

UIWebViewBasicAuth

Add basic auth headers to your UIWebView
13
star
19

pow-client

Pow wrapper for the command line
Ruby
12
star
20

UIRightButtonCell

UITableViewCell with right button that detects touches. Similar to the one in the App Store
Objective-C
12
star
21

FRDynamicScrollView

Dynamic Scroll View for iOS
Objective-C
10
star
22

cocoa-gitignore

Gitignore sample for Cocoa projects
10
star
23

rake_notifier

Notify of Rake exceptions via email
Ruby
8
star
24

routes

Routes library for ruby
Ruby
8
star
25

CocoaYoutubeUploader

Upload videos to Youtube from Cocoa
Objective-C
7
star
26

Snake4iPhone

Snake for iPhone
Objective-C
6
star
27

newsite

newsite is a command line generator for static websites
Ruby
4
star
28

CoreGraphicExamples

CG Examples
Objective-C
4
star
29

Personal-Development

Personal Development Wiki
4
star
30

dot-files

My dot files
Vim Script
4
star
31

httpmock

A Go http://golang.org/ Http Mocking Library
Go
2
star
32

NSFileManager-DirectoryLocations

2
star
33

Fructivity-Website

Fructivity Source code
JavaScript
2
star
34

apue

Code from apue
C
2
star
35

GreenBoardPro

Green Board Pro is an iphone app for keeping track of ideas
Objective-C
2
star
36

Rails-One-Click-Website

Rails One Click Website
CSS
2
star
37

FoodReminder

Objective-C
2
star
38

Ruby-Stat

Stats for Ruby Code
Ruby
2
star
39

tokyocabinet_rails

An example app that uses Tokyo Cabinet for storing records
Ruby
2
star
40

Hare

Toy webserver in Ruby
Ruby
1
star
41

oscardelben.github.com

HTML
1
star
42

acts_as_restricted_subdomain

Allows a Rails application to run multiple subdomain sites transparently inside of a single Rails instance
Ruby
1
star
43

tokyocabinet_cache

An example of fragment caching implementation for Rails
1
star
44

capo

Run multiple commands at the same time
Go
1
star
45

Crazy-Tests

Having fun with test unit
Ruby
1
star