You are not logged in.

#1 2007-09-01 09:38:00

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

File Browsing for Freaks (i.e. 'advanced users')

I'm currently searching a simple, lightweight, shell-based file-browser. I'm not searching a file-manager, too much bloat in it. I don't want to manage my files through a file-manager, I prefer to use cp, mv, vi/nano etc..

I just want a file-browser which I can use to browse directories on my system through an ncurses-based interface.
It should just show me the content of a directory and give me a one-line CLI-Prompt at the bottom as the Midnight Commander does, so I can execute my commands (cp, mv, vi/nano etc..) directly from the file-browser

Do you know ncmpc? Or cplay?
I'm searching a file-browser with an interface which resembles the one ncmpc and/or cplay uses.

If you know something like that what I'm searching, drop me a line.

Last edited by azerty (2007-09-04 10:24:34)


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#2 2007-09-01 09:55:48

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: File Browsing for Freaks (i.e. 'advanced users')

midnight commander (mc in current or mc-utf8 in community).


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#3 2007-09-01 11:38:31

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

Re: File Browsing for Freaks (i.e. 'advanced users')

Thanks for the sugestion but Midnight Commander isn't what I'm searching. It's too bloated, I don't want to manage my files through a menu and edit them via MC's editor.

I just want 'ls with ncurses' and at the bottom a CLI-Prompt for direct input of cp, mv, chown, chmod vi/nano etc..
It's really simple, isn't there anything like that out there?

Last edited by azerty (2007-09-01 11:39:01)


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#4 2007-09-01 12:47:00

shamrok
Member
From: Poland, Kraków
Registered: 2006-02-20
Posts: 61

Re: File Browsing for Freaks (i.e. 'advanced users')

Maybe Vifm will be good for you.

Offline

#5 2007-09-02 11:35:46

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

Re: File Browsing for Freaks (i.e. 'advanced users')

Too sad, but also Vifm isn't what I'm searching.
As I didn't manage to find something which seems to fit my needs, I'm going to try coding that thingy myself.

If there's success you'll here from me..

Last edited by azerty (2007-09-02 11:37:58)


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#6 2007-09-02 12:15:56

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

Re: File Browsing for Freaks (i.e. 'advanced users')

Why not just run an mc-like ls after cd'ing?
I use this: ls -l -a --color=auto -h -F --group-directories-first
Which I have aliased to just l

Offline

#7 2007-09-02 12:41:13

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

Re: File Browsing for Freaks (i.e. 'advanced users')

At first I thought about using blank cd/ls (like you suggested) to navigate through my system, however I think my geek'nes currently don't goes that far. At the moment I need something to make the transition from GUI file management to text-mode file management, so I need some visual output I can navigate through.

I just exactly found what I am searching: Clex

I think I'll stay with Clex one or two months, after that I'll probably end with using cd/ls as a few people I know already do.

Last edited by azerty (2007-09-02 12:41:59)


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#8 2007-09-02 22:48:35

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: File Browsing for Freaks (i.e. 'advanced users')

clex works pretty nicely for me too. It's just a littel slow to startup.

Offline

#9 2007-09-03 07:36:28

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: File Browsing for Freaks (i.e. 'advanced users')

Hello,

in the good old days when I used IBM OS/2 ther had been a small programm inspired by the dired-mode of emacs. Maybe its just what you want. Though -- it's from 1997!

http://www.ibiblio.org/pub/Linux/utils/ … red305.zip

Offline

#10 2007-09-04 10:10:17

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

Re: File Browsing for Freaks (i.e. 'advanced users')

Gilneas wrote:

Why not just run an mc-like ls after cd'ing?
I use this: ls -l -a --color=auto -h -F --group-directories-first
Which I have aliased to just l

I played around with different tools in the last days and I found out some things which can be useful.

Possibility 1:
'~$: ls -l -a --color=auto -h -F --group-directories-first | w3m'

In this case w3m is used as pager for displaying a directory's content.
But one could also use 'more', 'less' or simply '~$: ls -l -a --color=auto -h -F --group-directories-first' without any pager.

Possibility 2:
'~$: w3m <path/to/dir>'

By default this gives you a full dual panel view with browse-able ('click-able') directories, content listing and viewing (not editing AFAIK) the content of text files.
You're even able to customize the panel-, format- and sorting-type by simply using 3 selection fields at the top.

I think using w3m as directory pager and file viewer *could* be a compromise between the blank ls and a more powerful file browser.

Possibility 3:
'~$: lynx <path/to/dir>'

More powerful than w3m with (at least) the same customization possibilities.
Additionally you can specify a default editor (e.g. Vi, Nano etc.) in the lynx config, after this you're able to select a text file and [ENTER] to open your preferred editor and view/modify the selected file. Modify it, save, quit the editor and continue browsing your system with lynx. Lynx' capabilities go even further: You can create, modify (move/rename) and delete directories.


Amazing, don't you think?
Unix and its abilities to combine different tools for a specific task never ceases to amaze me. big_smile

Last edited by azerty (2007-09-04 10:35:16)


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#11 2007-09-04 10:17:23

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: File Browsing for Freaks (i.e. 'advanced users')

In this case, why not using directly a text editor like vim or emacs ?
At least both these have a similar behavior.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#12 2007-09-04 13:26:00

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: File Browsing for Freaks (i.e. 'advanced users')

Stefan Husmann wrote:

Hello,

in the good old days when I used IBM OS/2 ther had been a small programm inspired by the dired-mode of emacs. Maybe its just what you want. Though -- it's from 1997!

http://www.ibiblio.org/pub/Linux/utils/ … red305.zip

Sorry the zipfile at the above link is broken.
For those who want to test dired here is another link. http://fresh.t-systems-sfr.com/linux/src/dired305.zip

Offline

#13 2007-09-04 15:12:54

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

Re: File Browsing for Freaks (i.e. 'advanced users')

shining wrote:

In this case, why not using directly a text editor like vim or emacs ?
At least both these have a similar behavior.

Does vim actually have a built-in file browser? Or did you mean vifm?

Concerning Emacs, I know there's is something called 'dired-mode' which brings some file browsing capabilities to Emacs. Even if I think that Emacs is quite interesting, but installing an entire OS  err I mean Emacs just to get some basic file browsing seems to be bit exaggerated.

Stefan Husmann wrote:
Stefan Husmann wrote:

Hello,

in the good old days when I used IBM OS/2 ther had been a small programm inspired by the dired-mode of emacs. Maybe its just what you want. Though -- it's from 1997!

http://www.ibiblio.org/pub/Linux/utils/ … red305.zip

Sorry the zipfile at the above link is broken.
For those who want to test dired here is another link. http://fresh.t-systems-sfr.com/linux/src/dired305.zip

Could you post a screenshot of this tool, please?


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#14 2007-09-04 15:44:55

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: File Browsing for Freaks (i.e. 'advanced users')

azerty wrote:

Does vim actually have a built-in file browser? Or did you mean vifm?

I just tried what you did with w3m/lynx with vim/emacs.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#15 2007-09-04 15:50:13

FeatherMonkey
Member
Registered: 2007-02-26
Posts: 313

Re: File Browsing for Freaks (i.e. 'advanced users')

I've got this in vim with :Texplore

Now I confess I'm a newbie with Vim and I haven't got a clue whether this is default or associated to the taglist plugin I'm using.

Offline

#16 2007-09-04 16:12:41

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

Re: File Browsing for Freaks (i.e. 'advanced users')

@ shining

Didn't know that vi has an built-in file browser until you've said it. That's actually a cool feature.
What did you use for emacs? dired or something other?

@ FeatherMonkey
I think it's built-in by default, cause I'm using vi without any plugins and ':Texplore' works right for me.

I'm suprised how much hidden functionality we have in everyday software, lets find some more tongue


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#17 2007-09-04 16:18:03

FeatherMonkey
Member
Registered: 2007-02-26
Posts: 313

Re: File Browsing for Freaks (i.e. 'advanced users')

I tried on another OS but didn't get it as for Vim it loses me still learning that mystery. I'm not even sure where I got that from, I even tried googling to see where I picked it up from.

Just was in my vim history after playing the other day.
I've got plenty more to discover with this vim.

Edit
:Explore does it to, on both OS's

Last edited by FeatherMonkey (2007-09-04 16:41:36)

Offline

#18 2007-09-04 17:45:13

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: File Browsing for Freaks (i.e. 'advanced users')

azerty wrote:

@ shining

Didn't know that vi has an built-in file browser until you've said it. That's actually a cool feature.
What did you use for emacs? dired or something other?

@ FeatherMonkey
I think it's built-in by default, cause I'm using vi without any plugins and ':Texplore' works right for me.

I'm suprised how much hidden functionality we have in everyday software, lets find some more tongue

No, same for emacs, nothing particular, I just did "emacs /path/to/dir"


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#19 2007-09-05 11:49:42

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: File Browsing for Freaks (i.e. 'advanced users')

azerty wrote:

Could you post a screenshot of this tool, please?

Actually I got it compiled last night using a PKGBUILD, but please be patient, I'm am not at home now. I will post it in the evening.

It looks a little weird. Maybe because I had to remove some library-concerning stuff (-lbsd -ltermcap) and to add -lncurses.  I am no programmer, so I don't know if this is the recommended way to handle such problems (I have no termcap- and bsd-library and do not know where to get it).

But it works, at least browsing, opening and deleting of files.

Offline

#20 2007-09-05 12:46:15

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: File Browsing for Freaks (i.e. 'advanced users')

Stefan Husmann wrote:
azerty wrote:

Could you post a screenshot of this tool, please?

Actually I got it compiled last night using a PKGBUILD, but please be patient, I'm am not at home now. I will post it in the evening.

It looks a little weird. Maybe because I had to remove some library-concerning stuff (-lbsd -ltermcap) and to add -lncurses.  I am no programmer, so I don't know if this is the recommended way to handle such problems (I have no termcap- and bsd-library and do not know where to get it).

But it works, at least browsing, opening and deleting of files.

Oops, there is a package termcap-compat. I will give it a try!

Offline

#21 2007-09-05 13:58:48

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

Re: File Browsing for Freaks (i.e. 'advanced users')

Stefan Husmann wrote:
azerty wrote:

Could you post a screenshot of this tool, please?

Actually I got it compiled last night using a PKGBUILD, but please be patient, I'm am not at home now. I will post it in the evening.

It looks a little weird. Maybe because I had to remove some library-concerning stuff (-lbsd -ltermcap) and to add -lncurses.  I am no programmer, so I don't know if this is the recommended way to handle such problems (I have no termcap- and bsd-library and do not know where to get it).

But it works, at least browsing, opening and deleting of files.

You said this program dates from the last century (OS/2), I think it's nothing suprising that old programs look a bit 'different'.
Just a question, where did get that thing? Did you download it or is it your own work?

No Problem, I'll patiently wait here. :-D


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#22 2007-09-05 16:01:33

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: File Browsing for Freaks (i.e. 'advanced users')

There is actually a Vim plugin call vimcommander, which implements a two pane MC like interface:

http://vim.sourceforge.net/scripts/scri … ipt_id=808

Offline

#23 2007-09-06 07:21:45

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: File Browsing for Freaks (i.e. 'advanced users')

Hello,

when I promised to post the screenshots i did not know that no binaries can be uploaded here. Please write an E-Mail if anyone wants them.

Offline

#24 2007-09-06 11:25:39

azerty
Member
Registered: 2007-08-23
Posts: 90
Website

Re: File Browsing for Freaks (i.e. 'advanced users')

Why not simply upload it at imageshack.us? Or any other free hosting service..


Why are we here? What is the sense of life?
INVITATION TO THE TRUTH

Offline

#25 2007-09-06 15:04:38

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: File Browsing for Freaks (i.e. 'advanced users')

azerty wrote:

Why not simply upload it at imageshack.us? Or any other free hosting service..

Good idea! Never did o before, but it's easy.

diredsx0.png

dired2ry6.png

Offline

Board footer

Powered by FluxBB