scd icon indicating copy to clipboard operation
scd copied to clipboard

Usage unclear

Open hasufell opened this issue 4 years ago • 7 comments

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?

hasufell avatar May 06 '20 23:05 hasufell

What terminal are you using?

yugonline avatar May 07 '20 00:05 yugonline

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.

cshuaimin avatar May 07 '20 02:05 cshuaimin

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

$ scd
Error: EEXIST: File exists

No scd process is running.

hasufell avatar May 07 '20 09:05 hasufell

Please see #3.

cshuaimin avatar May 08 '20 06:05 cshuaimin

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

tgaldi avatar Oct 31 '20 00:10 tgaldi

@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 avatar Nov 01 '20 06:11 cshuaimin

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.

cshuaimin avatar Nov 01 '20 06:11 cshuaimin