[elinks-users] Re: Remove the annoying popups.
On Tue, Jul 18, 2006 at 06:54:03AM +0100, Thomas Adam wrote: [ It seems your editor doesn't know how to wrap lines. For someone who's a technical user, you ought to change this. ] Ha, the 75 char 'wrap' argument. I have got into this one a couple of times by now. The responsibility for wrapping is at the viewer's end. A paragraph is always a single line, and that way the width of the terminal wouldn't matter. The 75 char ARBITRARY width is a relic of the old 80 char terminals, and in the present day age of 1700x resolution at high end and 25 char resolution of the PDAs, such a line length doesn't make a teensy bit of sense. I am using Vim, which will beautifully wrap the line and intelligently handle words. Anyway, I don't want to get into this discussion. a) The problem is, it is really difficult to compose if the paragraph is not a single line. If it is a single line, then the formatting is always maintained irrespective of what editing you do inside, but if there is a hard newline, you have to manually format every time you make a change. b) I use mailing list to post to forums, and believe me, 75 char word wrapped posts really look ugly when they are displayed in forums, and that works against you when you are flaming someone. c) Even otherwise, I use lynx/vim to compose when posting to forums, and again, the word wrapped posts look really cluttered and uncivilized. Single line paragraphs are really beautiful; I mean, I love reading mails where the entire post is a single line. It somehow feels more full. d) From my website http://ligesh.com you can see that I am not a techie per se. I frequent philosophy/science mailing-lists and forums more than technical ones, and almost everyone there uses MS Word/Outlook to compose and the paragraph is always a single line. On Tue, Jul 18, 2006 at 06:44:32AM -0400, Ligesh wrote: Your use of popup here is completely misplaced. It's a *dialogue* window that you're seeing here. Of course, to do what you're asking isn't much of a problem, see the: show_not_found option in ELinks. You can find that via: Option Manager - Document - Searching - Show Not Found ... And whilst you're there, I suggest you also look at the other options under Searching as well. Hey, thanks. Life has started to make sense again... :-) I have also created a custom Xdialog using Lua. The problem seems to be that the Xdialog doesn't have a history, and I can't access any of the previous search strings I typed. So how do I turn on history for the xdialog? Xdialog? I guess I wasn't clear. I had pasted the code in my previous mail; Below is the actual lua code snippet I use. It calls something called xdialog, which I am guessing is the dialog box that pops up when I press 'S'. The problem is that even though it looks similar to the 'Enter Url' dialog box, this one doesn't have a history. Just put this into 'hooks.lua' in the .elinks directory and press 'S' from elinks. From hooks.lua bind_key (main, S, function () xdialog(, function (url) return goto_url, http://google.com/search?q=..url end) end) -- -- :: Ligesh :: http://ligesh.com ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Re: Remove the annoying popups.
On Tue, Jul 18, 2006 at 12:10:04PM -0400, Ligesh wrote: On Tue, Jul 18, 2006 at 06:54:03AM +0100, Thomas Adam wrote: [ It seems your editor doesn't know how to wrap lines. For someone who's a technical user, you ought to change this. ] Ha, the 75 char 'wrap' argument. I have got into this one a couple of times by now. The responsibility for wrapping is at the viewer's end. A paragraph is always a single line, and that way the width of Utter nonsense. Mutt displays it terribly. Since I too use Vim, and have tw=74, I have never had a problem as this is what the rest of planet tend to also wrap their lines to. If you think a paragraph is ever a single line because you believe the person viewing it has a viewer capable of somehow wrapping those lines his/herself, you're wrong. I guess I wasn't clear. I had pasted the code in my previous mail; Below is the actual lua code snippet I use. It calls something called xdialog, which I am guessing is the dialog box that pops up when I press 'S'. The problem is that even though it looks similar to the 'Enter Url' dialog box, this one doesn't have a history. Just put this into 'hooks.lua' in the .elinks directory and press 'S' from elinks. That's an unfortunate facet of the scripting backend. -- Thomas Adam -- If I were a witch's hat, sitting on her head like a paraffin stove, I'd fly away and be a bat. -- Incredible String Band. ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
[elinks-users] Re: Remove the annoying popups.
On Tue, Jul 18, 2006 at 07:47:08AM +0100, Thomas Adam wrote: Ha, the 75 char 'wrap' argument. I have got into this one a couple of times by now. The responsibility for wrapping is at the viewer's end. A paragraph is always a single line, and that way the width of Utter nonsense. Mutt displays it terribly. Since I too use Vim, and have tw=74, I have never had a problem as this is what the rest of planet tend to also wrap their lines to. If you think a paragraph is ever a single line because you believe the person viewing it has a viewer capable of somehow wrapping those lines his/herself, you're wrong. A lot of people use OutLook Express, and I mostly move around in this crowd, and their mails are all single line paragraphed. Anyway, you can set wrapmargin=screen-width - 70 in your muttrc, and mutt will wrap them properly. I really don't like the way 75 char limited paragraphs are displayed in forums or even in mails. It somehow doesn't look professional. press 'S'. The problem is that even though it looks similar to the 'Enter Url' dialog box, this one doesn't have a history. Just put this into 'hooks.lua' in the .elinks directory and press 'S' from elinks. That's an unfortunate facet of the scripting backend. Ok, then can I map a key so that the 'Go to Url' dialog will pop with a 'g ' already typed in? 'g search string' in the url box is the short for doing google search. I need a mapping like: bind_key('main', 'S', go_to_url_box('g ')); Is that possible? Thanks. ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Re: Remove the annoying popups.
On Tue, Jul 18, 2006 at 12:43:04PM -0400, Ligesh wrote: A lot of people use OutLook Express, and I mostly move around in Then they're using broken software. this crowd, and their mails are all single line paragraphed. Anyway, you can set wrapmargin=screen-width - 70 in your muttrc, and mutt I know this, but it's not the point. will wrap them properly. I really don't like the way 75 char limited paragraphs are displayed in forums or even in mails. It somehow doesn't look professional. Subjective. You're the first person I have heard of that thinks this. Should books all be printed on one line? Ok, then can I map a key so that the 'Go to Url' dialog will pop with a 'g ' already typed in? 'g search string' in the url box is the short for doing google search. I need a mapping like: bind_key('main', 'S', go_to_url_box('g ')); Is that possible? No, but then I find pressing 'g' twice is not too difficult. :) I'll look at patching the scripting hooks to allow for this -- it is kind of possible to do, since we already have the 'E' and 'G' bindings, for instance. -- Thomas Adam -- If I were a witch's hat, sitting on her head like a paraffin stove, I'd fly away and be a bat. -- Incredible String Band. ___ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users