@danixl30/file-explorer-cli 1.0.3 → 1.0.5

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.
@@ -1,3 +1,4 @@
1
+ import { randomUUID } from 'node:crypto';
1
2
  import { Badge } from '@inkjs/ui';
2
3
  import { Box, Text } from 'ink';
3
4
  import React, { useEffect, useMemo, useState } from 'react';
@@ -39,7 +40,7 @@ export const BookmarkList = (props) => {
39
40
  const item = items[e];
40
41
  if (!item)
41
42
  return React.createElement(React.Fragment, null);
42
- return (React.createElement(Text, { backgroundColor: index === e && isEnabled
43
+ return (React.createElement(Text, { key: randomUUID(), backgroundColor: index === e && isEnabled
43
44
  ? 'blue'
44
45
  : undefined }, ' ' + item.alias));
45
46
  })),
@@ -1,3 +1,4 @@
1
+ import { randomUUID } from 'node:crypto';
1
2
  import { Badge } from '@inkjs/ui';
2
3
  import { Box, Text } from 'ink';
3
4
  import React, { useEffect, useMemo, useState } from 'react';
@@ -49,7 +50,7 @@ export const NodeList = (props) => {
49
50
  if (!file)
50
51
  return React.createElement(React.Fragment, null);
51
52
  return (React.createElement(React.Fragment, null,
52
- React.createElement(Text, { backgroundColor: index === e ? 'blue' : undefined }, `${selections.length > 0 &&
53
+ React.createElement(Text, { key: randomUUID(), backgroundColor: index === e ? 'blue' : undefined }, `${selections.length > 0 &&
53
54
  selections.some((e) => e.path === file.path)
54
55
  ? ' '
55
56
  : selections.length > 0 &&
@@ -26,7 +26,7 @@ export const operationsManager = (fileManager, clipboard, pasteOperation, delete
26
26
  items: fileManager.selections.value.length === 0
27
27
  ? [node]
28
28
  : fileManager.selections.value,
29
- opeation: 'COPY',
29
+ opeation: 'CUT',
30
30
  });
31
31
  };
32
32
  const removeNode = async (node) => {
@@ -13,13 +13,13 @@ export default function TabsWrapper() {
13
13
  useInput((input, key) => {
14
14
  if (inputCapture.isInputEnabled || textField.isInputEnabled)
15
15
  return;
16
- if (key.tab)
17
- tabs.moveToNext();
18
- if (key.tab && key.shift)
16
+ if (key.shift && input === 'Z')
19
17
  tabs.moveToPrev();
20
- if (input === 't' && key.ctrl)
18
+ else if (key.tab)
19
+ tabs.moveToNext();
20
+ else if (input === 't' && key.ctrl)
21
21
  tabs.addTab();
22
- if (input === 'w' && key.ctrl)
22
+ else if (input === 'w' && key.ctrl)
23
23
  tabs.removeTab(tabs.index.value);
24
24
  });
25
25
  useEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danixl30/file-explorer-cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "files": "dist/cli.js"
package/readme.md CHANGED
@@ -26,7 +26,7 @@ Use ```CTRL + t``` to create a new tab. If the cursor in on a directory press ``
26
26
 
27
27
  User ```CRTL + w``` to close current tab.
28
28
 
29
- Use ```TAB``` and ```SHIFT + TAB``` to change tabs.
29
+ Use ```TAB``` and ```SHIFT + z``` to change tabs.
30
30
 
31
31
  Use ```RIGHT``` to select files or directories. ```SHIFT + RIGHT``` to unselect. ```SHIFT + i``` to invert selection. ```SHIFT + a``` to selcet all.
32
32