diff --git a/readme.md b/readme.md index 3abd8ab..5e8c14b 100644 --- a/readme.md +++ b/readme.md @@ -5,13 +5,14 @@ gossa [![Build Status](https://travis-ci.org/pldubouilh/gossa.svg?branch=master)](https://travis-ci.org/pldubouilh/gossa) -🎢 A fast and simple webserver for your files, that's dependency-free and with under 240 lines for the server code, easily code-reviewable. +🎢 A fast and simple webserver for your files, that's dependency-free and with under 210 lines for the server code, easily code-reviewable. ### features * browse through files/directories * upload with drag-and-drop * move/rename/delete files * browse through pictures with a full-screen carousel + * stream videos directly from the browser * simple keyboard navigation/shortcuts * fast ; fills my 80MB/s AC wifi link @@ -32,12 +33,13 @@ make |-------------|-------------| |Arrows/Enter | browse through files/directories and pictures| |Ctrl/Meta + C | copy URL to clipboard| +|Ctrl/Meta + B | toggle theme (dark/clear)| +|\ | search| |Ctrl/Meta + E | rename file/folder| |Ctrl/Meta + Del | delete file/folder| |Ctrl/Meta + D | create a new directory| |Ctrl/Meta + X | cut selected path| |Ctrl/Meta + V | paste previously selected paths to directory| -|\ | search| ### ui shortcuts |shortcut | action| diff --git a/src/main_test.go b/src/main_test.go index 60bffa2..80652a6 100644 --- a/src/main_test.go +++ b/src/main_test.go @@ -77,7 +77,7 @@ func testDefaults(t *testing.T, url string) string { t.Fatal("error δΈ­ζ–‡ folder") } - if !strings.Contains(bodyStr, ` 0.2k custom_mime_type.types `) { + if !strings.Contains(bodyStr, ` 211.0B custom_mime_type.types `) { t.Fatal("error row custom_mime_type") } @@ -116,7 +116,7 @@ func TestGetFolder(t *testing.T) { } bodyStr = testDefaults(t, "http://127.0.0.1:8001/") - if !strings.Contains(bodyStr, ` 0 AAA/ `) { + if !strings.Contains(bodyStr, ` AAA/ `) { t.Fatal("error new folder created") } @@ -140,7 +140,7 @@ func TestGetFolder(t *testing.T) { } bodyStr = testDefaults(t, "http://127.0.0.1:8001/") - if strings.Contains(bodyStr, ` 0 AAA/ `) { + if strings.Contains(bodyStr, ` AAA/ `) { t.Fatal("error folder moved") } @@ -157,7 +157,7 @@ func TestGetFolder(t *testing.T) { } bodyStr = testDefaults(t, "http://127.0.0.1:8001/") - if !strings.Contains(bodyStr, ` 0.0k α„’α…‘ α„’α…‘ `) { + if !strings.Contains(bodyStr, ` 9.0B α„’α…‘ α„’α…‘ `) { t.Fatal("error checking new file row") }