Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "The xdotool way" #213

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ Credit: @kpumuk
:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9
```

## The `xdotool` way

Credit: @x3rAx

Why type complex commands yourself when `xdotool` can **do the hard work for you**?<sup>*</sup>

```bash
:!(xdotool type ":e /tmp/exit.vim"; xdotool key KP_Enter; xdotool type "ggiquitall\!"; xdotool key KP_Enter; xdotool key Escape; xdotool type ":w"; xdotool key KP_Enter; xdotool type ":source /tmp/exit.vim"; xdotool key KP_Enter)&
```

**¯\\\_(ツ)\_/¯**

<sup>*</sup> Needs `xdotool` to be installed

## The first contact way
Credit: @caseyjohnellis
![Jeffrey Way](assets/first-contact-way.png)
Expand Down