projects/pwm

changeset 39:131c35592054

Allow keybinding customizations in ~/.teclarc
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Thu Aug 08 22:48:09 2019 +0200 (14 months ago)
parents 8b55f7b1c6b3
children e3ad9859c51d
files io.c pwm.c
line diff
     1.1 --- a/io.c	Thu Aug 08 16:23:44 2019 +0200
     1.2 +++ b/io.c	Thu Aug 08 22:48:09 2019 +0200
     1.3 @@ -116,6 +116,7 @@
     1.4  		if (gl_private == NULL) {
     1.5  			err(1, "new_GetLine");
     1.6  		}
     1.7 +		gl_configure_getline(gl_private, NULL, NULL, "~/.teclarc");
     1.8  		gl_catch_blocked(gl_private);
     1.9  	}
    1.10  
    1.11 @@ -168,6 +169,7 @@
    1.12  	if (gl == NULL) {
    1.13  		err(1, "new_GetLine");
    1.14  	}
    1.15 +	gl_configure_getline(gl, NULL, NULL, "~/.teclarc");
    1.16  	/* disable default filename completion */
    1.17  	gl_customize_completion(gl, NULL, io_gl_complete_nothing);
    1.18  	gl_echo_mode(gl, 0);
     2.1 --- a/pwm.c	Thu Aug 08 16:23:44 2019 +0200
     2.2 +++ b/pwm.c	Thu Aug 08 22:48:09 2019 +0200
     2.3 @@ -126,6 +126,7 @@
     2.4  	if (gl == NULL) {
     2.5  		err(1, "new_GetLine");
     2.6  	}
     2.7 +	gl_configure_getline(gl, NULL, NULL, "~/.teclarc");
     2.8  	gl_catch_blocked(gl);
     2.9  	gl_limit_history(gl, PWM_HISTORY_LINES_MAX);
    2.10  	/* disable default filename completion */