Skip to content

Commit

Permalink
Added the first two til's and updated the README
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Chandler committed Feb 12, 2016
1 parent cd792ba commit 7804513
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# TIL

> Today I Learned
A collection of concise write-ups on small things I learn day to day across a
variety of languages and technologies. These are things that don't really
warrant a full blog post.

---

### Categories

* [Git](#git)
* [Vim](#vim)

---

### Git

* [Move Multiple Files](git/move-multiple-files.md)

### Vim

* [Search As You Type](vim/search-as-you-ype.md)

## About

I got this idea from [jbranchaud/til](https://github.com/jbranchaud/til), who got it from [thoughtbot/til](https://github.com/thoughtbot/til).

## Other TIL Collections

* [Today I Learned by Hashrocket](https://til.hashrocket.com)
* [jbranchaud/til](https://github.com/jbranchaud/til)
* [jwworth/til](https://github.com/jwworth/til)
* [thoughtbot/til](https://github.com/thoughtbot/til)

## License

© 2016 Matt Chandler

This repository is licensed under the MIT license. See `LICENSE` for
details.
9 changes: 9 additions & 0 deletions git/move-multiple-files.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
If you have to move a lot of files in Git at the same time, here is a helpful Bash script to do it:

```bash
for FILE in src/*.js; do git mv $FILE new-dir/; done
```

The first time I used this was when I needed to adjust the casing on file names while doing a JavaScript refactor. Since Windows is not case-sensitive, adjusting the file system did not affect Git.

Source: http://stackoverflow.com/a/2305537/54727
11 changes: 11 additions & 0 deletions vim/search-as-you-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
To start searching a file as you type the search string, turn on the `incsearch` option in your `.vimrc` file:

```
set incsearch
```

You can also turn on the highlighting of search results:

```
set hlsearch
```

0 comments on commit 7804513

Please sign in to comment.