Feeds:
Posts
Comments

Archive for the ‘keyboard navigation’ Category

copy paste in tmux

i m assuming that the tmux prefix is Control+b and that you have emacs style key bindings on

1) enter copy mode using Control+b [
2) navigate to beginning of text, you want to select and hit Control+Space
3) move around using arrow keys to select region
4) when you reach end of region simply hit Alt+w to copy the region
5) now Control+b ] will paste the selection

you can navigate the text using the emacs style navigation key
Control+p, Control+n, Control+f, Control+b etc.

Dan in the comments informs me that if you have vi style key bindings on then the following applies:

1) enter copy mode using Control+b [
2) navigate to beginning of text, you want to select and hit Space
3) move around using arrow keys to select region
4) when you reach end of region simply hit Enter to copy the region
5) now Control+b ] will paste the selection

To enable vi like cursor movement in copy mode put the following in your ~/.tmux.conf:


set-window-option -g mode-keys vi

more over what ever you copy, you may dump that out in your terminal using


tmux show-buffer

and even save to a file(say, foo.txt) using


tmux save-buffer foo.txt

To see all the paste buffers try Control + b #. To dump out the varios buffers on to the terminal or file you may use

tmux list-buffers
tmux show-buffer -b n
tmux save-buffer -b n foo.txt

where n is the index of the paste buffer.

Advertisements

Read Full Post »

first things first … i m trying archlinux and am feeling more close to the gnu/linux spirit than i was with ubuntu at the same time i have started using vim … anyways the topic of this post is easy keyboard navigation on special pages such as a google search results page or when browsing forums or bbs.

  • google searche results page :: when you have to go to the next page of search results u have to use the mouse and often i do navigate up to 10 pages or results and this is tiresome and hurts my palm a lot 😦
  • google picture searches and picture gallery browsing :: when you have to go to the next page of search results u have to use the mouse and often i do navigate up to 10 pages or results and this is tiresome and hurts my palm a lot 😦
  • forum/bbs browsing :: some threads are several pages long and here again to navigate between pages the mouse needs to be used.

fortunately i discovered the next please firefox addon which is a lifesaver for me. i strongly urge u keyboard junkies to try it out.

another tip to help your RSI and CTS woes is to keep the mouse to the left of your keyboard and try and use the left hand. the design of the keyboard is such that the numeric keypad and the home key, insert key etc. come in the way of reaching the mouse so that one has to move a greater distance with the right hand. there is not much on the left hand side so the left hand movement is smaller. more over its a good idea to switch between the right hand and the left hand when using the evil mouse. this will distribute the toll thus lessening the overall danger.

btw the use of an ergonomically designed mouse of any other input device is highly recommended if u r on the net a lot!

  1. next please firefox addon
  2. archlinux
  3. RSI
  4. CTS

Read Full Post »