Pārlūkot izejas kodu

Treat ~ as special shortcut in filterentries

master
Arun Prakash Jana pirms 5 gadiem
vecāks
revīzija
dd5b419742
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: A75979F35C080412
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. +2
    -0
      nnn.1
  2. +2
    -1
      src/nnn.c

+ 2
- 0
nnn.1 Parādīt failu

@@ -189,6 +189,8 @@ Special keys at empty filter prompt:
- run a plugin by its key: ';'
.br
- pin current directory: ','
.br
- go HOME: '~'
.Pp
Other noteworthy keys:
.Pp


+ 2
- 1
src/nnn.c Parādīt failu

@@ -2499,9 +2499,10 @@ static int filterentries(char *path, char *lastname)
if (len == 1) {
switch (*ch) {
case '=': // fallthrough /* Launch app */
case ']': // fallthorugh /*Prompt key */
case ']': // fallthorugh /* Prompt key */
case ';': // fallthrough /* Run plugin key */
case ',': // fallthrough /* Pin CWD */
case '~': // fallthrough /* Go HOME */
case '?': /* Help and config key, '?' is an invalid regex */
goto end;
}


Notiek ielāde…
Atcelt
Saglabāt