Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commits (1)
......@@ -423,6 +423,7 @@ function main() {
state.input.key = state.input.key.toLowerCase();
switch (state.input.key) {
// Highlight next link
case 's':
case '\t':
if (state.item_type == '1' || state.item_type == '7') {
lowlight(state.doc[state.item], state.item);
......@@ -432,6 +433,7 @@ function main() {
}
break;
// Highlight previous link
case 'w':
case '`':
if (state.item_type == '1' || state.item_type == '7') {
lowlight(state.doc[state.item], state.item);
......@@ -463,7 +465,11 @@ function main() {
break;
// Get root directory of current server
case 'o':
go_get(state.host, state.port, '', '1');
if (state.host === 'go-for') {
go_back();
} else {
go_get(state.host, state.port, '', '1');
}
break;
// Go back (history)
case 'u':
......@@ -506,6 +512,12 @@ function main() {
go_get(state.host, state.port, state.selector, state.item_type, true, false);
}
break;
case 'q':
if (state.host === 'go-for') {
state.input.key = '';
go_back();
}
break;
default:
actioned = false;
break;
......
......@@ -5,8 +5,8 @@
hc o w go to the root directory of the current server
hc u or [left] w go back
hc [right] w go forward
hc [tab] w highlight the next item
hc` (backtick) w highlight the previous item
hc s or [tab] w highlight the next item
hc w or ` w highlight the previous item
hc [enter] w select the current item
hc j or [up] w scroll up
hc k or [down] w scroll down
......