https://github.com/pablopunk/odf
"open-diff-files". Open modified files in the current git repo.
https://github.com/pablopunk/odf
Last synced: about 1 year ago
JSON representation
"open-diff-files". Open modified files in the current git repo.
- Host: GitHub
- URL: https://github.com/pablopunk/odf
- Owner: pablopunk
- License: mit
- Created: 2017-05-24T18:25:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-22T23:46:30.000Z (over 2 years ago)
- Last Synced: 2024-05-02T05:12:18.847Z (about 2 years ago)
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Open Diff Files
Open all the changed files in the current git repo
## Install
### Globally with npm
```bash
npm install -g odf
```
### Execute directly with npx
```bash
npx odf nvim
```
### Install with homebrew
```bash
brew install pablopunk/brew/odf
```
## Usage
Use `odf [--pr] ` to open all the modified files with the editor of your choice:
```shell
odf # print all the modified files
odf --pr # print all the modified files using origin/main as a base (i.e. all files you'd see on a PR)
odf atom # open all the modified files with atom editor
odf vim # open in vim (as buffers)
odf vim -p # open in vim (as tabs)
odf nvim # open in neovim
odf --pr nvim # open in neovim using origin/main as a base
```
## License
[__MIT license__](license)
## Author
|  |
| ----------------------------------------------------------------------------- |
| © 2017 [Pablo Varela](http://pablo.life) |