relative folders
This commit is contained in:
@@ -53,6 +53,8 @@ are parsed.
|
||||
- C: clear filter
|
||||
- S: enter filter editor
|
||||
|
||||
|
||||
## Search bar tricks
|
||||
|
||||
- Start search with / to enter relative URL
|
||||
|
||||
|
||||
|
||||
@@ -147,6 +147,10 @@ function filter(ev) {
|
||||
if (ev == null) { return }
|
||||
var key=ev.keyCode;
|
||||
if (key==13){
|
||||
/* If search starts with / "cd" to that folder. (also /.. works)*/
|
||||
if (needle.startsWith("/")) {
|
||||
window.location.href = needle.substring(1);
|
||||
}
|
||||
if (c==0) { document.getElementById('filter').focus(); }
|
||||
if (c==1) { open_link(lastHit); }
|
||||
if (c>1) {
|
||||
|
||||
Reference in New Issue
Block a user