cshuaimin / scd

Sync current directory between your shell and a file manager
MIT License
128 stars 0 forks source link

Usage unclear #4

Open hasufell opened 4 years ago

hasufell commented 4 years ago

https://github.com/cshuaimin/scd#usage

In sidebar, run scd to open the main window.

What is a sidebar? How to open one?

In your shell, you need to setup some hooks to send scd shell events:

I ran that in my fish shell, it did nothing. Where to run this?

yugonline commented 4 years ago

What terminal are you using?

cshuaimin commented 4 years ago

First, you need to use tmux, screen, kitty shell or something to split the terminal into left and right panels, and narrow the left panel a little.

Then run scd in the left panel. In readme I call this panel sidebar.

Finally run scd fish-init | source in the right panel. This command setup the hook and doesn't output anything.

hasufell commented 4 years ago

Can't try it anymore, because I always get:

$ scd
Error: EEXIST: File exists

No scd process is running.

cshuaimin commented 4 years ago

Please see #3.

tgaldi commented 3 years ago

I'm having a similar issue where fish-init causes the terminal to hang. If I kill the terminal and try again, SCD exits when I use any command other then navigating up/down/filter. I tried using rm /tmp/{scd-cmds-to-run,scd-shell-events}.

I replace the cargo src with the src directly from github but fish-init still hangs. It no longer exits when navigating directories - instead it says shell not initialized. The commands still seem to work, but I cannot open files (nor does it sync with directories with my terminal). This might be due to trying to use a wildcard in open.yml to call a custom command: *.*: wsl-open

cshuaimin commented 3 years ago

@tgaldi

  1. If fish-init hangs the terminal, try to exit fish, killall scd, then start a new terminal session. This may be an issue of incomplete cleanup in fish_deinit.

  2. Currently only the file extension is allowed in the configuration file, and scd will treat the wildcard as the file extension...

cshuaimin commented 3 years ago

I am sorry for the long inactivity of the project, but it has not been abandoned. In fact, I use scd in my work every day and planed to implement many cool features. I started my first intern several months ago, writing some boring Python scripts, so I have less free time for scd. I’m trying to implement a new TUI crate using Flutter’s diff algorithm and Elm like architecture. After this I will rewrite scd with this TUI crate and avoid these bugs and implement the features I wanted every day.