Giter Site home page Giter Site logo

willeccles / cfm Goto Github PK

View Code? Open in Web Editor NEW
107.0 5.0 8.0 509 KB

๐ŸŒต Simple and fast TUI file manager with no dependencies.

Home Page: https://cfm.atinycact.us

License: Mozilla Public License 2.0

C 93.15% Makefile 0.99% Roff 5.86%
file-manager tui cactus c

cfm's Introduction

#include <cstdio>
template<int a,int...b>struct c{void d(){putchar(a);c<a^b...>{}.d();}};
template<int e>struct c<e>{void d(){putchar(e);}};
int main(){c<0163,026,0170,034,074,0122,047,0103,046,0125,0137>{}.d();}

PGP: 956D8570AA247CEC55158652CAEBC3A8A8B8E9E8

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

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.

`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)

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)

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

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.

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.

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.

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

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).

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.

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

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.