willeccles / cfm Goto Github PK
View Code? Open in Web Editor NEW๐ต Simple and fast TUI file manager with no dependencies.
Home Page: https://cfm.atinycact.us
License: Mozilla Public License 2.0
๐ต Simple and fast TUI file manager with no dependencies.
Home Page: https://cfm.atinycact.us
License: Mozilla Public License 2.0
Currently, these spam EDITOR instances until the user gives valid input.
Similar to how searching on h works, find the new filename in the file list and move the selection to it.
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
See mouse branch.
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.
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).
I.e. if you do Q instead of q it will change directories to cfm's current directory after closing.
See discussion on #18.
Possible fix: hash table for files created by the program. This is how cp
seems to do it, pretty much universally. Will need to work this out. May be a better way.
Copy how promptus does this (or don't)
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)
Expected behavior: don't resolve symlinks, that way the user will see the wd as the one they specified and not the resolved path.
It might be better to put it in the cfm directory by default instead of having it clutter up the home folder.
Would be nice to have and would make the mark feature not useless. May require a rethink of cfm's main controls.
For example:
$ pwd
/home/jeff/mydir
$ ls
mydir2
$ ln -s mydir2 ~/mydir3
$ cd ~/mydir3
$ cfm
In this example, the path in cfm will be /home/jeff/mydir/mydir2
. However, if you were to run cfm ~
and then switch into mydir3
, the path would be correctly displayed as /home/jeff/mydir3
.
Ideally, cfm would show /home/jeff/mydir3
after the example above.
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
)
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.
Everyone said it was non-standard, well guess what idiots, C99 standard 7.19.6.1 section 8 disagrees with you >:D
cfm got all slow and memory-inefficient because I actually listened to people on the internet, why did I ever do that?
OS: KISS Linux
Steps to reproduce:
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
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.
I would like to know your opinion about:
This would be useful for deleting massive directories which you do not want to copy to the tmp directory.
This would be done in the lower status bar, and should take minimal work to implement.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.