Comments (5)
Thanks so much, @dundee
You welcome!
from gdu.
The xdg-open way can be implemented quite easily, but the rest is hard (maybe even impossible), because of the way how the terminal UI library works. But I am not sure if it's nice to open files from gdu (terminal app) into GUI apps. Internal file viewer would be probably better (but not easy to implement).
from gdu.
I think this is not what a du (disk usage analyzer) does. Usually, a du is used to find which file takes the most space, not to browse the files. And text files are usually not big.
Maybe you are looking for something like nnn?
from gdu.
I see the use case for this. When using a file manager like mc, I am generally browsing where I know mostly everything - whereas with gdu, I'm generally exploring new places. Many times, while using ncdu, I've had a "what's this file?" moment, and I had to copy the directory path and paste it into a new shell just to view what the supposed file contains.
I guess a simple option to implement would be a key to spawn $PAGER (which generally can be used for text or compressed text), and another key for running xdg-open (which will call a GUI for any file type).
Another key to run a shell in $PWD could be more troublesome to implement, the previous two keys should cover most use cases.
from gdu.
Thanks so much, @dundee
from gdu.
Related Issues (20)
- feature: sort by create/update date HOT 1
- Windows NTFS drive mounted in linux infinitely traverses symlinks without -L flag
- Error When Pressing Right Key in Empty Folder: Panic with Interface Conversion Nil Error
- Windows Instructions to fix: `bash: gdu: command not found` HOT 1
- Default colors are unreadable HOT 4
- macos no detecting tty HOT 5
- [Question] Is it possible to delete files/directories in parallel ? HOT 17
- [Windows] Sort in non-interactive mode are different (and not correct) from interactive
- pi5 aarch64: gcc: error: unrecognized command-line option '-marm' HOT 4
- Add keybinding for ignoring directory under the cursor HOT 3
- Feature request: background deletion HOT 1
- Feature request: compression estimate support HOT 1
- Feature: replace error symbol HOT 1
- Always Scanning HOT 6
- Try using SetMemoryLimit
- external (cgo) linking - failure to build groupcache HOT 1
- ENTER key not working when navigating loaded json file HOT 1
- panic: interface conversion HOT 3
- Feature request: seqential mode for hdd HOT 9
- "--max-depth" support - allow for summary of size per directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdu.