Increased Developer Productivity with Tmux, Part 6: Leveraging Elinks to stay focused.
Regards ♨ – Minimul
Use Elinks to reduce from the dreaded productivity killer, context switching
In Part 5 I covered the send-keys command. In this edition, I show how wisely using Elinks, the console-based web browser, will curtail context switching allowing you to retain your concentration at the task at hand.
I don't cover installing Elinks, but if you are using OSX and Brew see my dated article, which may be still helpful. I am using version
0.12pre5 but I don't worry about keeping up with latest Elinks' versions because as you will see I mostly only use Elinks in situations where web-page layout doesn't matter, such as for documentation and API references.
- To get started I launch Tmux with my basic starter template,
~/.tmuxgo(see part 4 — Starter templates), which starts Elinks automatically in
- I like to have Elinks running near the end of my window indexes in each of my projects so I can go it quickly with muscle memory.
- To maximize Elinks effectiveness the configuration file must be understood along with the concept of "dumb" and "smart" rewrites.
- I open my Elinks configuration file located locally for me at
- A smart rewrite is one that handles dynamic input.
- Links are in a slight bold. To locate a desired link in a mouse-free way, initiate a text search via typing
/and then your search text. In this example, I start typing "Class" to match the link I want.
- Smart rewrites are fantastic for references like a thesaurus look up.
- Here are some "dumb" rewrites, these shortcuts don't accept dynamic input, hard links, if you will.
- A dumb rewrite I use regularly is my personal Vim cheat sheet (named "myvim"), which is a publicly host Google doc.
- Lastly, let me display a "binding", which is a topic I will go into more in depth in Part 7. I mapped lowercase "o" as a short cut to open the URL window/modal that has already been seen many places in this article and screencast.
Elinks is designed in a similar way to Tmux with a client/server approach. By using the
-no-connect option you launch Elinks in a stand-alone mode. I prefer this as it makes it possible to register new configuration changes. If you don't use the
-no-connect switch you will notice that Elinks doesn't pickup your configuration changes on a quit and restart. This is because you need to restart the entire Elinks server (again when launching Elinks without
Why are smart and dumb rewrites so important?
Because Elinks can excel when being used for references, documentation, cheat sheets, etc. Smart and dumb rewrites make Elinks simple and efficient to use for these use cases.
If Elinks is going to become a tool that steps-up your productivity you "must" use the text content search to find your links speedily. Otherwise you will be frustrated with Elinks and stop using it because navigating to links is cumbersome. Please watch around the 7:00 mark to see a live demonstration.
That concludes installment 6. Leveraging Elinks to stay focused.
I am going to stop here as I don't want this article nor screencast getting too long winded. The information here is enough to make you dangerous so don't delay in finding some time to invest in getting started today adding Elinks to your Tmux productivity arsenal.
If you like this article and screencast go to the dedicated page for this series at http://minimul.com/teaches/tmux.