Return to repo list

suckless-gf-dmenu

Gentoo-friendly patches for Suckless's dmenu.
Return to HMagellan.com

USAGE (3842B)


      1 navhistory - Give dmenu bash-like history functionality
      2 Source: https://tools.suckless.org/dmenu/patches/navhistory/dmenu-navhistory-20200709.diff
      3 Original Authors: phi crispyfrog@163.com
      4                   Philip K. - philipk (at) posteo (dot) net
      5 
      6 Description from source:
      7     """
      8     This patch provides dmenu the ability for history navigation similar to that of bash. Press alt+p 
      9     for the previous history and alt+n for the next.
     10     
     11     Configuration
     12 
     13     Set the maximum number of histories with a new variable 'maxhist' in config.h. By default, it only 
     14     records a new history if it is not the same as the last one. To change this behaviour, set 'histnodup' 
     15     to 0 in config.h.
     16     """
     17 
     18 == YOU MUST ==
     19 (1). Place the patch file in /etc/portage/patches/x11-misc/dmenu/
     20 (2). Add the following lines to your savedconfig file:
     21 
     22         static unsigned int maxhist    = 64;
     23         static int histnodup           = 1;
     24 
     25      'maxhist' represents the maximum number of history entries to record. 'histnodup' will not add duplicate
     26      entries to the history file if set to 0, and will add duplicate entries if set to 1.
     27 
     28 (3). Run 'emerge dmenu'
     29 
     30 == YOU PROBABLY SHOULD ==
     31 (1). Run dmenu with the '-H X' option, where 'X' is the history file location.
     32 (2). Press Alt-P to go to the previous search item and Alt-N for the next.
     33 
     34 == PATCH MODIFICATIONS ==
     35 (1). Removed all changes made to 'config.def.h'
     36 (2). Modified chunk #7 of the dmenu.c diff to reflect the 4.8 code
     37 (3). Added a 'nodoc' patch version which strips out added documentation
     38 
     39 == INCOMPATIBILITIES ==
     40 THIS PATCH MAKES CHANGES TO DMENU'S BUILT-IN DOCUMENTATION, WHICH CAN CAUSE CONFLICTS WITH OTHER PATCHES!
     41 If you encounter such conflicts, try emerging with the 'navhistory-nodoc.patch' file instead. It is the
     42 same as the 'navhistory.patch' file except it makes no changes to the documentation.
     43 
     44 ###################################################################################################
     45 ###################################################################################################
     46 
     47 navhistorysearch - Extends navhistory.patch with search functionality
     48 Source: https://tools.suckless.org/dmenu/patches/navhistory/dmenu-navhistory+search-20200709.diff
     49 Original Authors: phi crispyfrog@163.com
     50                   Philip K. - philipk (at) posteo (dot) net
     51 
     52 Description from source:
     53     """
     54     This patch extends navhist with history-search functionality. Press ctrl-r, like in bash or ksh, and the 
     55     suggestions will be replaced with the history. Press ctrl-r again to revert.
     56     """
     57 
     58 == YOU MUST ==
     59 (1). Place the patch file in /etc/portage/patches/x11-misc/dmenu/
     60 (2). Add the following lines to your savedconfig file:
     61 
     62         static unsigned int maxhist    = 64;
     63         static int histnodup           = 1;
     64 
     65      'maxhist' represents the maximum number of history entries to record. 'histnodup' will not add duplicate
     66      entries to the history file if set to 0, and will add duplicate entries if set to 1.
     67 
     68 (3). Run 'emerge dmenu'
     69 
     70 == YOU PROBABLY SHOULD ==
     71 (1). Run dmenu with the '-H X' option, where 'X' is the history file location.
     72 (2). Press Alt-P to go to the previous search item and Alt-N for the next.
     73 (3). Press Ctrl-R to see search suggestions, and Ctrl-R again to revert.
     74 
     75 == PATCH MODIFICATIONS ==
     76 (1). Removed all changes made to 'config.def.h'
     77 (2). Modified chunks #3, #4, and #9 of the dmenu.c diff to reflect the 4.8 code
     78 (3). Added a 'nodoc' patch version which strips out added documentation
     79 
     80 == INCOMPATIBILITIES ==
     81 THIS PATCH MAKES CHANGES TO DMENU'S BUILT-IN DOCUMENTATION, WHICH CAN CAUSE CONFLICTS WITH OTHER PATCHES!
     82 If you encounter such conflicts, try emerging with the 'navhistorysearch-nodoc.patch' file instead. It is the
     83 same as the 'navhistorysearch.patch' file except it makes no changes to the documentation.