LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-26-2010, 02:31 AM   #1
KonfuseKitty
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.10
Posts: 22

Rep: Reputation: 0
Question Open ANY file - BBEdit equivalent on Linux?


I'm using Ubuntu 10.04 and Gedit isn't able to open every possible file thrown at it, it often complains about not being able to find the right encoding. I miss BBEdit on the Mac, which opened any file. Is there a Linux equivalent?
 
Old 07-26-2010, 03:09 AM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,633
Blog Entries: 29

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
See if the following link helps you somehow:
http://alternativeto.net/desktop/bbedit/?platform=linux
 
Old 07-26-2010, 07:13 AM   #3
KonfuseKitty
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.10
Posts: 22

Original Poster
Rep: Reputation: 0
Thanks, that's an interesting link, worth exploring. At first glance, there isn't an editor listed that would open any file, I will need to look deeper. A specific recommendation from a happy user would be most welcome, though.
 
Old 07-26-2010, 07:16 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,633
Blog Entries: 29

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Would you specify the extensions of "any file" ?

e.g.:

.txt
.rtf
 
Old 07-26-2010, 07:32 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
As long as you mean "plain text files" with different encodings you should be able to handle them right with something like bluefish or kate. Kate even lets you choose the encoding manually from the open file dialog as far as I remember.

I am sure emacs and vim will do as well, but I am not too wise about these two.
 
Old 07-26-2010, 09:46 AM   #6
acvoight
LQ Newbie
 
Registered: Jul 2010
Distribution: Linux Mint
Posts: 21

Rep: Reputation: 1
Assuming you mean text files, I have noticed gedit sometimes fails to automatically detect encoding with large ones (not sure why, it loads partially then when complete, fails). What usually works for me is to select Western (ISO-something) encoding from the menu (that and UFT-8 are what is usually present).
 
Old 07-26-2010, 11:03 AM   #7
KonfuseKitty
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.10
Posts: 22

Original Poster
Rep: Reputation: 0
By any file I mean any extension, a JPEG, a binary, anything. This is what BBEdit provides, it opens absolutely any file. It's a very useful feature to have and I would be shocked to learn there isn't a Linux equivalent.
 
Old 07-26-2010, 11:26 AM   #8
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
It depends exactly what you want to do to this opened file, once you have it open! Sure, you can open all sorts of files, using applications that are not natively able to do much with the file once it's open..

I just read the Wiki page & some of the BBEdit website, and I don't see much (if any) mention of JPEG files. The thing appears to be an advanced text editor (but NOT a word processor). Perhaps you might look at SciTE and Scintilla and see if they are approaching anything like what you are looking for.

I'd also look at KDE's various components (and perhaps GNOME equivalent though I don't know what that is..), which are really well integrated, with Konqueror being the main ingredient, and loads of plugins & other KDE apps tied into it..

If nothing I've written helps at all, please tell us what you want to do with this application that can open anything - i.e. are you doing web development, text processing, image editing....? And maybe then we can suggest what you're looking for.

Last edited by GrapefruiTgirl; 07-26-2010 at 11:28 AM.
 
Old 07-26-2010, 11:34 AM   #9
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Plus, look here: http://alternativeto.net/desktop/bbedit/?platform=linux
 
Old 07-26-2010, 11:34 AM   #10
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
I'm personally doubting it opens "any" file. I'm thinking infact it may examine the fine and pass it to the relevent decoder based on MIME type.

What I dont understand is the point of this - my underlying windowing system does this for me. I click a jpeg it opens up in picture viewer, I click a .avi and it opens in xine, if I click .html it opens in firefox....


Checked the linked site (linked above and below!) - "BBEdit is the leading professional HTML and text editor for the Macintosh. Specifically crafted in response to the needs of Web authors and software developers, this award-winning product provides an abundance of high-performance features for editing, searching, and manipulation of text"

Doesn't say anything about handling images etc.

Last edited by djsmiley2k; 07-26-2010 at 11:36 AM.
 
Old 07-26-2010, 11:35 AM   #11
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
Quote:
Originally Posted by GrapefruiTgirl View Post
Erm, check post #2?
 
Old 07-26-2010, 11:36 AM   #12
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by djsmiley2k View Post
Erm, check post #2?
lol - thanks!
 
Old 07-26-2010, 12:36 PM   #13
KonfuseKitty
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.10
Posts: 22

Original Poster
Rep: Reputation: 0
I see I still haven't been clear enough: upon opening of the file, I want to see it as text. Sure, a lot of non-text files such as images and binaries will be opened as 'garbage', unrecognised characters and such. But other times the info you're looking for is in un-encoded ASCII and then having the ability to view it is useful.

I hope that's made the question clearer.
 
Old 07-26-2010, 12:40 PM   #14
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
You're looking for HexEdit by the sounds of it. There are likely several (or many!) so look around for more if you don't like the looks of this one.
EDIT: And, they come in both GUI and console versions - just look around a bit.

Last edited by GrapefruiTgirl; 07-26-2010 at 12:41 PM.
 
Old 07-26-2010, 01:28 PM   #15
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Well one the simplest you could get is cat I suppose, and if you want, something like less to page it unless you chop the output down somehow. That will (try) to open any file you want, the results depending on what is inside and how your terminal reacts to the data (some binary content could possibly mess your terminal session, so be prepared to open a new instance). I don't think the program you mentioned, or any other for that matter, has "editing capabilities" aimed specifically at every possible file type, given that new types, proprietary and open, pop up and get pushed down all the time. If you only want to read and write text (as in ASCII), then about every text editor ought to do, if they're written such that they don't choke on a huge amount of data (i.e. do not try to slurp the whole file at once, if it's not possible due to the way the program is built).

If you're not afraid of jungle, try Emacs. When you start wondering how many days it was since you jumped in, it'll give you a calendar (M-x calendar RET) to check the day from, among other things. And when you're ready, there's always the psychoterapist (M-x doctor RET)

Last edited by b0uncer; 07-26-2010 at 01:29 PM. Reason: added key shortcuts
 
  


Reply

Tags
editor, file, linux, open


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
err... What's the Linux equivalent of a windows batch file? Solouko Linux - Newbie 8 06-07-2010 11:03 PM
Linux open source equivalent to Adobe Creative Suite?? UbrInKid Linux - Software 1 12-02-2009 08:13 AM
open source/linux equivalent to Norton Ghost or StorageSoft's ImageCast Mugatu Linux - Software 7 06-17-2008 09:16 AM
Linux equivalent to PAD file generator? TippyToes Linux - Software 1 12-09-2003 05:02 PM
.bat file equivalent in linux? Gnute Linux - General 5 08-17-2003 10:21 AM


All times are GMT -5. The time now is 11:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration