@danixl30/file-explorer-cli 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danixl30/file-explorer-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "files": "dist/cli.js"
@@ -9,6 +9,10 @@
9
9
  "engines": {
10
10
  "node": ">=16"
11
11
  },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/danixl30/cli-file-explorer"
15
+ },
12
16
  "files": [
13
17
  "dist"
14
18
  ],
package/readme.md CHANGED
@@ -5,7 +5,7 @@ Simple CLI file explorer with NodeJs
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- $ npm install -g @danixl30/cli-file-explorer
8
+ $ npm install -g @danixl30/file-explorer-cli
9
9
  ```
10
10
 
11
11
  ## CLI
@@ -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.