@danixl30/file-explorer-cli 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tabs/logic/tabsManagerLogic.js +2 -0
- package/package.json +1 -1
- package/readme.md +7 -1
@@ -13,6 +13,8 @@ export const tabsManagerLogic = (stateFactory, valueProvider, createTab, onInit,
|
|
13
13
|
indexState.setState(tabsState.state.value.length - 1);
|
14
14
|
};
|
15
15
|
const removeTab = (index) => {
|
16
|
+
if (tabsState.state.value.length === 1)
|
17
|
+
return;
|
16
18
|
selectionInTabs.value = selectionInTabs.value.filter((_e, i) => index !== i);
|
17
19
|
tabsState.setState(tabsState.state.value.filter((_e, i) => index !== i));
|
18
20
|
if (index >= tabsState.state.value.length)
|
package/package.json
CHANGED
package/readme.md
CHANGED
@@ -14,6 +14,10 @@ $ npm install -g @danixl30/cli-file-explorer
|
|
14
14
|
$ files --help
|
15
15
|
```
|
16
16
|
|
17
|
+
## Icons
|
18
|
+
|
19
|
+
For icons you must to use [MesloLGM NF]('https://www.nerdfonts.com/#home') in your terminal.
|
20
|
+
|
17
21
|
## Usage
|
18
22
|
|
19
23
|
Use ```UP``` and ```DOWN``` key to move the cursor at the directory.
|
@@ -54,4 +58,6 @@ Use ```SHITF + s``` to add dir that is on cursor to bookmarks.
|
|
54
58
|
|
55
59
|
Use ```s``` to switch to bookmarks pane.
|
56
60
|
|
57
|
-
Use ```a``` to create a directory in current tab.
|
61
|
+
Use ```a``` to create a directory in current tab.
|
62
|
+
|
63
|
+
Use ```d``` in bookmarks pane to remove a bookmark.
|