sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (1935B)


      1 keyboard\_select
      2 ================
      3 
      4 Description
      5 -----------
      6 This patch allows you to select and copy text to primary buffer with keyboard
      7 shortcuts like the perl extension keyboard-select for urxvt.
      8 
      9 Instructions
     10 ------------
     11 The patch changes the config.def.h. Delete your config.h or add the shortcut
     12 below if you use a custom one.
     13 
     14 	Shortcut shortcuts[] = {
     15 		...
     16 		{ TERMMOD, XK_Escape, keyboard_select, { 0 } },
     17 	};
     18 
     19 Notes
     20 -----
     21 When you run "keyboard\_select", you have 3 modes available :
     22 
     23 * move mode :   to set the start of the selection;
     24 * select mode : to activate and set the end of the selection;
     25 * input mode :  to enter the search criteria.
     26 
     27 Shortcuts for move and select modes :
     28 
     29 	 h, j, k, l:    move cursor left/down/up/right (also with arrow keys)
     30 	 !, _, *:       move cursor to the middle of the line/column/screen
     31 	 Backspace, $:  move cursor to the beginning/end of the line
     32 	 PgUp, PgDown : move cursor to the beginning/end of the column
     33 	 Home, End:     move cursor to the top/bottom left corner of the screen
     34 	 /, ?:          activate input mode and search up/down
     35 	 n, N:          repeat last search, up/down
     36 	 s:             toggle move/selection mode
     37 	 t:             toggle regular/rectangular selection type
     38 	 Return:        quit keyboard_select, keeping the highlight of the selection
     39 	 Escape:        quit keyboard_select
     40 
     41 With h,j,k,l (also with arrow keys), you can use a quantifier. Enter a number
     42 before hitting the appropriate key.
     43 
     44 Shortcuts for input mode :
     45 
     46 	 Return:       Return to the previous mode
     47 
     48 Download
     49 --------
     50 * [st-keyboard\_select-20190207-3be4cf1.diff](st-keyboard_select-20190207-3be4cf1.diff)
     51 * [st-keyboard\_select-0.8.1.diff](st-keyboard_select-0.8.1.diff)
     52 * [st-keyboard\_select-0.8.2.diff](st-keyboard_select-0.8.2.diff)
     53 * [st-keyboard\_select-20200617-9ba7ecf.diff](st-keyboard_select-20200617-9ba7ecf.diff)
     54 
     55 Authors
     56 -------
     57 * Tonton Couillon - <la dot luge at free dot fr>