소스 검색

nuke: open manpages, reload dir after dot

master
Arun Prakash Jana 5 년 전
부모
커밋
490359f853
No known key found for this signature in database GPG 키 ID: A75979F35C080412
2개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. +5
    -0
      plugins/nuke
  2. +6
    -2
      src/nnn.c

+ 5
- 0
plugins/nuke 파일 보기

@@ -371,6 +371,11 @@ handle_multimedia() {
handle_mime() { handle_mime() {
mimetype="${1}" mimetype="${1}"
case "${mimetype}" in case "${mimetype}" in
## Manpages
text/troff)
man -l "${FPATH}"
exit 0;;

## Text ## Text
text/* | */xml) text/* | */xml)
vi "${FPATH}" vi "${FPATH}"


+ 6
- 2
src/nnn.c 파일 보기

@@ -4653,6 +4653,7 @@ nochange:
cfg.runplugin = 0; cfg.runplugin = 0;
/* Must be in plugin dir and same context to select plugin */ /* Must be in plugin dir and same context to select plugin */
if ((cfg.runctx == cfg.curctx) && !strcmp(path, plugindir)) { if ((cfg.runctx == cfg.curctx) && !strcmp(path, plugindir)) {
endselection();
/* Copy path so we can return back to earlier dir */ /* Copy path so we can return back to earlier dir */
xstrlcpy(path, rundir, PATH_MAX); xstrlcpy(path, rundir, PATH_MAX);
rundir[0] = '\0'; rundir[0] = '\0';
@@ -4908,9 +4909,12 @@ nochange:
break; break;
case SEL_TOGGLEDOT: case SEL_TOGGLEDOT:
cfg.showhidden ^= 1; cfg.showhidden ^= 1;
if (ndents)
copycurname();
if (cfg.filtermode) if (cfg.filtermode)
presel = FILTER; presel = FILTER;
break;
clearfilter();
goto begin;
case SEL_DETAIL: case SEL_DETAIL:
cfg.showdetail ^= 1; cfg.showdetail ^= 1;
cfg.showdetail ? (printptr = &printent_long) : (printptr = &printent); cfg.showdetail ? (printptr = &printent_long) : (printptr = &printent);
@@ -4973,7 +4977,6 @@ nochange:
break; break;
} }



/* Save current */ /* Save current */
if (ndents) if (ndents)
copycurname(); copycurname();
@@ -5410,6 +5413,7 @@ nochange:
} }


if (sel == SEL_PLUGKEY) { if (sel == SEL_PLUGKEY) {
endselection();
r = xstrlcpy(g_buf, messages[MSG_PLUGIN_KEYS], CMD_LEN_MAX); r = xstrlcpy(g_buf, messages[MSG_PLUGIN_KEYS], CMD_LEN_MAX);
printkeys(plug, g_buf + r - 1, PLUGIN_MAX); printkeys(plug, g_buf + r - 1, PLUGIN_MAX);
printprompt(g_buf); printprompt(g_buf);


불러오는 중...
취소
저장