okay, then we'll have to just look at whether it is possible for us to detect properly. Vim (console/terminal) does it correctly when it's compiled against the X headers... but not when it isn't.
Myrddin Emrys wrote: > I've encountered this myself, and would appreciate it if fish took pasted \n > as alt+enter instead. However... typing speed is not a reliable measure, > because a flakey vpn or slow internet connection... or even a stuck X window > process on a slow computer... can cause many dozens of keystrokes to be > received by the command buffer at once, looking very much like a paste. > Reliably telling the difference between a paste and typing would be quite > difficult I believe, if not impossible. > > On Fri, May 30, 2008 at 9:24 AM, Isaac Dupree <[EMAIL PROTECTED]> > wrote: > >> This one is really not much of fish's fault... but. >> >> When I paste something into my shell, sometimes it has a newline >> character on the end, which means that the command gets executed >> immediately when I don't necessarily want it to. (although that can be >> convenient I guess. But I don't really have control when I select >> things to go into the X paste-buffer, whether they end in \n.) >> >> proposal: No matter how many lines the thing pasted in is, just paste it >> in without executing it. (Then ctrl-C will clear it and enter will >> execute the whole thing like a script, because that's what you want >> sometimes.) Just like if you insert newlines with alt+enter (don't some >> programs use shift+enter for that purpose instead? or maybe ctrl+enter? >> is there a standard?) >> >> Of course, that requires being able to detect whether something is a >> paste vs. direct typing in, which I don't know if we can do (there are >> "correct" ways to do it, and then there is quite accurate guessing based >> on the immense "typing speed" of pasting versus real typing) >> >> -Isaac >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Fish-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/fish-users >> > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
