Giter Club home page Giter Club logo

cfm's People

Contributors

e5ten avatar hawkeye0021 avatar marcuscalhoun-lopez avatar ryandesign avatar willeccles avatar wooosh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cfm's Issues

File/ Dir does not delete sometimes

When i try to delete a file/ directory using dd, cfm says The dir/ file already exists or Error deleting: File exists, then i have to keep pressing dd till it deletes (it eventually does delete, on the third try).

After opening a file using xdg-open, cfm becomes locked up and will not accept imput, aside from "Enter"

Video for clarity

Basically if you open an image file using xdg-open once you leave the file shortcuts like h, j, k, l, dd, q, and the like wont work. Instead, they will just type the letters over the filename that is selected. The only way to fix the issue I have seen is to open the file in $EDITOR, exit out of the file, and the keybindings will be back.

EDIT: Seems to only happen on .jpg and .png files now, NOT other file types.
https://youtu.be/eiKY9uxPdIg

Terminal (Alacritty) not cleared

When i open shell in the current folder/ exit cfm, the previous text is not cleared and the current text (the text after exiting/ opening a shell) overlaps with the previous one.

(Works fine with xterm)

Use scandir?

Look into using scandir(3), it does a lot of what the existing code does but it does a lot of it for us. Downside: lots of allocations.

Delete function no longer works in newest release

The dd and D commands no longer work to delete files in the newest release of cfm. If you try to delete files the error "Error deleting: Invalid cross-device link" appears. This does not happen on older builds of cfm.

`p` crashes program

If i paste a file (which i yanked with yy) in the same folder...it crashes the app.
(Probably because a file with the same name already exists) (or if that is handled then could be related to the shell script as $EDITOR...idk though)

Suggestions

I would like to know your opinion about:

  • Splitting the project into multiple files
  • Changing error codes from ints to enums
  • Removing logic from main switch into dedicated functions
  • Remove the goto's

Shell script $EDITOR handling

I have a shell script that i use to run my editor which i have used in $EDITOR.
When a file/ folder is created using cfm, the editor opens and exits quickly i believe, so i am unable to name/ rename them.

unrecognized option

OS: KISS Linux

Steps to reproduce:

  1. Build cfm.
~ $ doas kiss b cfm
Password:
-> Resolving dependencies
-> Building: cfm
-> Checking to see if any dependencies have already been built
-> Installing any pre-built dependencies
-> cfm Checking repository files
-> cfm Downloading sources
-> cfm Found cached source 'v0.4.1.tar.gz'
-> cfm Building package (1/1)
-> cfm Extracting sources
-> cfm Starting build
cp: unrecognized option: n
BusyBox v1.31.1 (2020-01-20 23:52:29 PST) multi-call binary.

Usage: cp [OPTIONS] SOURCE... DEST

Copy SOURCE(s) to DEST

        -a      Same as -dpR
        -R,-r   Recurse
        -d,-P   Preserve symlinks (default if -R)
        -L      Follow all symlinks
        -H      Follow symlinks on command line
        -p      Preserve file attributes if possible
        -f      Overwrite
        -i      Prompt before overwrite
        -l,-s   Create (sym)links
        -T      Treat DEST as a normal file
        -u      Copy only newer files
make: *** [Makefile:19: config.h] Error 1
-> cfm Build failed

Bulk rename; bulk copy/paste

Would be nice to have and would make the mark feature not useless. May require a rethink of cfm's main controls.

Add a CD-on-close feature

I.e. if you do Q instead of q it will change directories to cfm's current directory after closing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.