mistakenelf / fm Goto Github PK
View Code? Open in Web Editor NEWA terminal based file manager
License: MIT License
A terminal based file manager
License: MIT License
Talking about my folder of 800+ files, when I move down that list at some point the selected row is "below" the screen bottom, effectively making it invisible. Scrolling up two or three times brings it back into the visible area.
Another odd behavior was when I scrolled backwards (from the first position of the list on the top pressing key up). I could only scroll to roughly half of the visible list before the selection would reset to the last element again. It would basically loop from there on.
Maybe all these oddities have something to do with the UI breaking in between from trying to preview different file types.
View()
functions of other components outside of View()
functions which can cause rendering issuesAdd screenshots of the different themes
Print version info when running fm -v
or fm —version
When I open my downloads folder (which contains half the internet of files of all sorts of types) fm simply hangs and won't let me do anything. Even Ctrl+C hangs.
The folder cointains approx 857 files, many of which are images, pdfs and zips.
Hi,
This project looks awesome. I do however get the error message:
knipferrc/fm crit platform darwin/arm64 is not supported. Make sure this script is up-to-date and file request at https://github.com/knipferrc/fm/issues/new
I have no idea how easy/hard this is but it would be really nice.
Use lipgloss adaptive font coloring to support light theme terminals
i beg u please provide a scoop pacakge for tha one . its soo good
please 🙏
give a scoop verions to install
Pressing l on a binary file to preview it in the preview pane will break the TUI. However, it does return at some point and fm continues to work.
Lf for example has this feature that instead of opening files, it writes the path of the selected file onto a specified file.
For example, when using this Lf, if lf -selection-path /tmp/tempfile
is used, then instead of doing something like...
$ $EDITOR /path/to/file
when opening a file, it writes the file's path to the file specified after -selection-path
...
$ echo "/path/to/file" > /tmp/tempfile
$ cat /tmp/tempfile
/path/to/file
This is an excerpt from the lf --help
...
-selection-path string
path to the file to write selected files on open (to use as open file dialog)
I request this feature as I really like your file manager and would like to use it with my neovim plugin called fm-nvim.
Remove the need to type file commands in the command bar and handle it through key handlers
Setup cobra so that a version flag can be used
See if the logic for resizing images can move to its own update function
Trying to preview either of the listed formats breaks the UI. It would be nice if fm could at least display some meta info if it's not able to give an actual preview, like the IDv3 info for mp3s or simply just file sizes and the full name of the file (as it can be too long for the list) for others.
Running fm /usr/local/bin
works, but passing in directories such as fm ./internal
or fm internal
break
When ctrl+d a file, the input prompt that asks for confirmation should not require an additional CR, but instead accept the confirmation (or rejection) with a simple key press of y or n.
When resizing the terminal the layout breaks
Upon pressing cp
or some other key combination, copy the selected directory items path to the clipboard
Add y/n confirmation to the command input when deleting files
Hi I was trying to install this on an arm64 Linux device but the following install.sh script failed.
$ curl -sfL https://raw.githubusercontent.com/knipferrc/fm/main/install.sh | sh
knipferrc/fm crit platform linux/arm64 is not supported. Make sure this script is up-to-date and file request at https://github.com/knipferrc/fm/issues/new
I see that Issue #96 Support M1 has been resolved and that Darwin and other arm64 targets are released. So I did a naive PR to add these targets to the install.sh script.
I have a symbolic link in my home directory, which is not recognized by fm
.
file
output on the link in question:
Templates: symbolic link to /home/gwyndolyn/Repositories/Dot-Files/Templates/
I have replicated the problem by creating a symbolic link to a folder elsewhere (in my Documents folder, for example) and fm
is again unable to resolve it to a directory.
System details:
Don’t allow scrolling in the directory tree up or down if there is only one file in the directory
~/.config
❯ cat fm.yml
settings:
borderless: true
enable_logging: false
enable_mousewheel: true
pretty_markdown: true
show_icons: false
Config is not loaded. Borders are still enabled, icons are enabled, etc.
Remove the custom colors for individual components and implement theming
At least one of these keys should be a shortcut for exiting fm. ctrl+c isn't the first thing one thinks of when trying to exit a TUI, I would say.
Use glamor for help text
Is there any plans on getting support for arm64 processors ?
Or if it already exists, can someone provide a link ?
Thanks
Add the ability to search for files/directories by name
Copying a file without an extension currently breaks
Copy a file or directory by pressing the letter c. Should give it a name with the word copy as well as a time stamp
If a directory item name is really long, it needs to wrap or get truncated instead of breaking the pane layout
Ideally, the highlight would stay where it is and be placed on the next item that would follow in place of the deleted one.
When highlighting a large .img file and accidentally pressing right/l the CPU goes wild but nothing really happens inside fm. One can still continue browsing.
How can i open a selected file in vim ?
Allow passing path to start fm at
make this file manager like a tui version of
total commander
double commander
midnight commander https://github.com/MidnightCommander/mc
this tool is awesome but not as pretty as golang bubble tea framework
Setup glamor to render markdown files if specified in config
Add a simple mode to remove the secondary pane
Add the ability to read from PDF files
Previewing a gif breaks the UI. Would it be possible to use something like chafa for previewing it? Chafa can play it and it should be possible to pipe its output into fm, I believe.
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.