ozansz / gls

Minimal file manager with terminal UI #Go
https://sazak.io/gls-file-manager-on-terminal-with-go/
MIT License
68 stars 5 forks source link

open files with custom applications for that specific file extension, specified in some config file #15

Open ozansz opened 2 years ago

ozansz commented 2 years ago

Summary

When a file is selected and opened (by hovering on it and pressing o), we should be able to open it with a custom program that we have specified in a custom configuration file. Configuration file may be .glsrc, and then we can use it later for other configurations

JusteenR commented 2 years ago

Hi @ozansz! I am interested on working on this issue and was wondering if I could be assigned it? I was also wondering how you go about testing on different operating systems since I only have a windows machine.

ozansz commented 2 years ago

Hi @ozansz! I am interested on working on this issue and was wondering if I could be assigned it? I was also wondering how you go about testing on different operating systems since I only have a windows machine.

Hi @JusteenR! You can use Windows Subsystem for Linux, or install a virtual machine inside Windows and run any Linux distro inside the VM to run and test the project. Unfortunately, the project is does not support Windows because it casts os.Lstat's to *syscall.Stat_t struct type to get the files' real size.

If you are interested, you can also open an issue to implement Windows-compatible code. The incompatible code part is here: https://github.com/ozansz/gls/blob/7e7a9b459fc880fb8ffbee80f8d47c7229fde750/internal/fs/walk.go#L30