@danixl30/file-explorer-cli 1.0.2 → 1.0.4

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.
package/dist/cli.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
+ import { join } from 'node:path';
2
3
  import { withFullScreen } from 'fullscreen-ink';
3
- import React from 'react';
4
4
  import meow from 'meow';
5
+ import React from 'react';
5
6
  import App from './app.js';
6
- import { join } from 'node:path';
7
7
  const cli = meow(`
8
8
  Usage
9
9
  $ files
@@ -1,4 +1,5 @@
1
+ import { join } from 'node:path';
1
2
  import { JSONFilePreset } from 'lowdb/node';
2
- export const db = await JSONFilePreset('db.json', {
3
+ export const db = await JSONFilePreset(join(import.meta.dirname, '../../../../db.json'), {
3
4
  bookmarks: [],
4
5
  });
@@ -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,10 +13,10 @@ 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
16
  if (key.tab && key.shift)
19
17
  tabs.moveToPrev();
18
+ if (key.tab)
19
+ tabs.moveToNext();
20
20
  if (input === 't' && key.ctrl)
21
21
  tabs.addTab();
22
22
  if (input === 'w' && key.ctrl)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danixl30/file-explorer-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "files": "dist/cli.js"