From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29140 invoked by alias); 14 Jan 2016 09:52:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37618 Received: (qmail 21800 invoked from network); 14 Jan 2016 09:52:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=o8vQgU1JufZDCSuZFnhQn3BpC/wM4eSW5WLOHt1DtVk=; b=oWPxfeXn7lrbbvTmPQoUyw8vR/MmShu5sVSzbW2xwvq8wruZIl2BNAP+oKXAOKcGTU jpSLTk5I6QZ7pwas5yDWfhxwx2dbXmRBC1C8eH/VTm2kwxOaFUJx5p73o830yZa730Dm jskRVq2wdVQYDrNNe9pTP/JuUW595zBCCdV9kYI03CeK+BupQ1yxQ6YwyG4+WeDPV7HH uZEa6K8i9p/GV+XO6IeeUEgCsUtVG2MRIPr1D0ncwnjMhOoDGvIea0GYAHrQxOs3AZ4M 9v0+9pxz1Ewvla/OufriK09tYnbFrxDev/5BUj9UUGOOzacKVchkL6SecLQ/v3gl9Mwm BGNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=o8vQgU1JufZDCSuZFnhQn3BpC/wM4eSW5WLOHt1DtVk=; b=QUlJ40HPxFDW3EzXvItQHGFveHEicghQ1WIgx/jebXkbR+XuHLvVXmKIlgZl/Ww+na unGSVsdcRFJYrnW3xPU64BDJffyHUdtNYQA+cWwYjvi0uD/D/sxRNb1etShf0m7dO0qF 9OZkUWZvDrRwM84wMGvleejdJzJ9yH7W35uZCudP6/aKk5wYo31GMw7BfdP2l33DAApa jEQ1xQtzAOk5gHPlGnV2DPlunsyfoQkyKlrvAXbv88qMP2O9u+3kXdk3M/TdTug2nZsO 4pU8Z9vHUazSQ1ZZYUVFNWDUKQAkQkum8YKe1Q0QtPNSxAVXqnyYM1kpdVGATiVoROwL tnXw== X-Gm-Message-State: ALoCoQlpxhSnao7jml2TSmxpqv2ih2Pre/ORzrbhvahcyhk9MTlJno+XaI7vmgqO3Gsxi4DLeKPnYxOqG5LXNvyoZ2gKeVekLg== X-Received: by 10.25.23.86 with SMTP id n83mr848399lfi.66.1452765154272; Thu, 14 Jan 2016 01:52:34 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <160111161501.ZM5305@torch.brasslantern.com> <160112113928.ZM9065@torch.brasslantern.com> <20160113010147.GA4699@tarsus.local2> <160112180141.ZM9984@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Thu, 14 Jan 2016 10:52:14 +0100 Message-ID: Subject: Re: _history-complete-older problems with $( To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 PS. I used the "find LBUFFER myself" approach to handle following case better ("|" is cursor): % $(( 0 |+ 1 )) Doing ${(z)LBUFFER} and then (z) on right part of BUFFER would produce SUFFIX="+" instead of "+ 1 ))". If I find the word in ${(z)BUFFER} and divide it into two halves myself, then I have PREFIX="$(( 0 " SUFFIX "+ 1 ))". However, following case works better with LBUFFER approach: % ${|a some other $words With LBUFFER approach, PREFIX="${" SUFFIX="a" and that's better than PREFIX="${" SUFFIX="a some other $words". I can of course respect no_complete_in_words and do PREFIX="${a" SUFFIX="". I'm currently looking for a way to choose better strategy, maybe someone has some ideas? Best regards, Sebastian Gniazdowski