From mboxrd@z Thu Jan 1 00:00:00 1970 X-Greylist: delayed 302 seconds by postgrey-1.37 at hurricane; Wed, 09 Jan 2019 09:58:23 PST Received: from mail.pcdesk.net (mail.pcdesk.net [198.167.140.45]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 6149277AFA for ; Wed, 9 Jan 2019 09:58:23 -0800 (PST) Subject: Re: [edbrowse-dev] spurious empty buffers from textareas To: edbrowse-dev@edbrowse.org References: <20190009071846.eklhad@comcast.net> From: Tyler Spivey Message-ID: <31c77dba-b68b-d90d-288a-2467b86dee78@pcdesk.net> Date: Wed, 9 Jan 2019 09:53:18 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List MIME-Version: 1.0 In-Reply-To: <20190009071846.eklhad@comcast.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit I don't really have a preference to the command, but I also vote yes. What will this do if there's text in that field already? My vote would be to say something like , and then let the command just put that in. 99% of the time I'm not going to care about whatever pre-filled text there is unless I'm filling out the form. On 1/9/2019 4:18 AM, Karl Dahlke wrote: > These have annoyed me for quite a while, and come to find they annoy others as well. > As per our chat discussions, I made a change, but it's a UI change so should be described here. > (Not everyone is on chat.) > > A fill out form with a textarea use to allocate a buffer for that area at browse time, looking like > It now waits to see if you're actually going to use it, since 90% of the time you don't. > It begins life as > > An itext (for input text) command allocates a buffer and changes it to > Then you can write text in buffer 7 and submit the form like before. > It's one more step for something that is rarely done, > but it prevents a ton of empty buffers from accumulating. > > I have no strong feelings about the actual command name. > > itext (input text) > ibuf (input buffer) > iw (input write) > ita (input textarea) > > Long as it starts with i I'm ok. > > If you change line 760 in decorate.c the old behavior returns. > > I'm not documenting any of this until a majority thinks it's a good idea. > My vote is yes but others may disagree. > > Karl Dahlke >