@danixl30/file-explorer-cli 1.0.4 → 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 &&
|
@@ -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.
|
16
|
+
if (key.shift && input === 'Z')
|
17
17
|
tabs.moveToPrev();
|
18
|
-
if (key.tab)
|
18
|
+
else if (key.tab)
|
19
19
|
tabs.moveToNext();
|
20
|
-
if (input === 't' && key.ctrl)
|
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
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 +
|
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
|
|