I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...
Doesn't the bundled editor GEdit offer much the same functionality? If you need a richer functionality, use a “true” Linux editor such as GVim or Emacs.
ReplyDeleteTo harness the full power of GEdit, have a look at this blog posting entitled Pimp my Gedit. Notepad++ is no match to this.
Geany is pretty similar to Notepad++. Supports syntax highlighting for several languages, auto-indent, tabs, etc. While plenty of the other editors listed here are excellent, geany seems the most similar to notepad++
ReplyDeleteI vote for Geany, it is in Ubuntu repositories.
ReplyDeleteIf you are using KDE, give kate a try.
ReplyDeleteGEdit is indeed more powerful than it may appear at first; in particular, the plugin system allows it to gain pretty much all the functionality you would find in something like Windows' Notepad++.
ReplyDeleteThere are plenty of sites that give you tips on "tricking out" your gEdit, such as this one, or this one or this one for a more-or-less comprehensive listing. Googling around will find you many more.
If you are looking for the same editing component, use SciTE. SciTE and Notepad++ both use Scintilla behind the scenes.
ReplyDeleteI would personally recommend VIM or GVIM. Its features are unmatched as far as I am concerned. Code folding and syntax highlighting are key features that are in both applications.
ReplyDeleteKomodo edit (large image if opened in new tab).
ReplyDeleteNon java (read: it's fast), free, has plugins, built around scintilla just like Notepad++.
There is also IDE (not free, but with debugger, version control etc).
Welcome to the dark side :)
ReplyDeleteFrom the top of my head, I would suggest gVim, the "graphical" version of Vim. It's an extremely competent editor, but it takes some time to get used to it. I had to check the tutorial to understand all the shortcuts etc. It has syntax highlighting for most languages.
But i don't know of any good WYSIWYG editor. However, you could of course try to run Notepad++ through Wine. That might work :)
A good editor that I've recently come across is Textadept, an open source editor which can be found at
ReplyDeletehttp://code.google.com/p/textadept/
It uses the same Scintilla editing widget that SciTE and Notepad++ use. It is fast, powerful, and highly extensible. It is also not as unintuitive as vim or emacs (surprise, Ctrl+C and Ctrl+V actually do copy and paste). Like SciTE, it is extensible in Lua and has very good documentation about how to extend it. I was able to change around a lot of the key commands the first day I started using it.
It has a large number of community-developed extensions and an astounding quantity of supported languages. Both of these are testaments to the ease with which the program can be extended.
It's not in the Ubuntu repositories yet, but there are easy-to-install binary packages available on the project website.
Notepad++ works fantastically in Ubuntu under wine. If you absolutely can't do without it, you can still have it.
ReplyDeleteI personally have been using Medit because it's lightweight, although it doesn't have some of the best featured of notepad++. Specifically, the split screen view is something I miss almost every single day.
Give Editra a try. It is open source and written in Python (runs on most platforms). The code is pretty stable. The project is being actively developed. Editra was recently featured on lifehacker.
ReplyDeleteFull Disclosure: my friend and colleague started the project
There is another thread about it here, but jEdit is a Java-based editor which is in the Ubuntu repositories.
ReplyDeleteIf you're used to Notepad++ it will probably have a slightly easier learning curve for you than Vim or Emacs, and I find it has more (useful) features than gEdit - and it has loads of plugins.
www.jedit.org, if you want the actual website :)
I like gEdit and I followed most of the tips that I found here to make it a pretty good lightweight IDE.
ReplyDeleteCan someone tell me if there's any editor that has tag match capability? For example:
ReplyDeletemy title
when you position the cursor anywhere within the opening brackets, Notepad++ will highlight the opening and closing tag's bracket (> in the closing tag), so everything in between will be highlighted, it's very useful when you need to edit HTML/CSS pages, is there anything similar for Linux/Ubuntu? I just switched to Ubuntu 9.04 and tried a few editors (Bluefish, Gedit, Geany, etc.), but none of them do what Notepad++ does with closing tag, maybe it's there and I couldn't figure out how to configure it. \
If there's such editor out there, please let me know which one and how to configure it.
Thanks for your comment/suggestion
Michael
you should really learn VIM... vi is in every linux and unix build ... therefore no matter what machine you get on, you will be able to do very powerful editing.
ReplyDeleteemacs would be the other choice to learn...
the other programs are nice but you will all thank us once you get passed the learning curve and your production will FLY...
even if you use gvim/cream on windows it is WELL worth it.
I have to use windows at work and people come by and see me running vim and are like WTF is that! meanwhile they use shitty dreamweaver lmao
Like others, I'd recommend running it under WINE, or if you just need to do some basic editing, like maybe adding a couple lines to your /etc/apt/sources.list, then you could try nano, which is run in the terminal. It's extremely easy to use, and gets the job done. It even has some basic syntax highliting, for example shell scripts. Tis isn't something you'd want to use for say hugely long C++ source editing, but for some shell scripts, or adding a few lines, it's very good. And, as a plus, it's kind of nice if your working in the terminal to stay in the terminal, rather than fumble around with another program. Just my two cents :)
ReplyDeleteafter a long time of searching the best Notepad++ alternative in Linux, I find that Notepad++ is the best alternative for Notepad++ in Linux. :-)
ReplyDeleteHere is the solution:
Install Wine from Ubuntu software Center, I used Wine 1.1.31;
Download Notepad++Portablelink text;
Go to your Notepad++ download folder, right click on the *.exe file and chose Open with Wine.....
Chose your language, chose your C:\Program Files\Notepad++Portable and click Install;
5 Go to Aplication Ubuntu menu, in Aplications/Wine/Browse c:/Drive or paste the following ~/.wine/dosdevices/c:/Program Files/Notepad++Portable in your File explorer
Right click on Notepad++Portable.exe and chose Open with Wine.....
Try gedit and the gmate plugin (adds a collection of plugins and themes) for Textmate like functionality
ReplyDeletehttp://www.webupd8.org/2010/12/get-textmate-features-and-styles-in.html
According to the site, there are 100 themes from textmate and a lot of plugins for web development.
Installation
sudo apt-add-repository ppa:ubuntu-on-rails/ppa
sudo apt-get update
sudo apt-get install gedit-gmate
Emacs and Vi are you best options, the power of those will dwarf anything that notepad++ can do...The learning curve is steep.
ReplyDeleteGedit is pretty good with a few add-ons.
gedit has long been a staple of my X installations. GVim is handy as well, but with Gedit and vi, I have just about everything I want.
ReplyDeleteYou could try gvim or xemacs, they'll probably take longer to get used to than np++ but either should be able to do everything you need. If this isn't good enough, you could also always just run np++ in Wine :)
ReplyDeleteGedit if you're using Gnome, or KWrite if you're using KDE, or Mousepad if you're using XFCE (although I don't know if it has syntax highlighting).
ReplyDeleteNotepad++ will run under Wine.
Kate and Nedit were always favourites where I worked.
ReplyDeleteI like vim (use it even on Windows) but if you want to avoid the steep learning curve and use something more "Windowsish", try NEdit: http://www.nedit.org/
ReplyDeleteThere are lots of plugins that you can add to the "base" editors of the main linux frontends Gedit (for Gnome), KWrite (for KDE) or MousePad (for XFCE), but if you want something more equipped from the beginning try Geany (for Gnome or XFCE) or Kate (for KDE).
ReplyDelete