From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2651 invoked from network); 1 Jul 2021 22:00:24 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 1 Jul 2021 22:00:24 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 4E96C3F760 for ; Thu, 1 Jul 2021 18:00:22 -0400 (EDT) (envelope-from bounce.mMb6b866d13c89e6a36656b2e3.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 4BA392B53FBC; Thu, 1 Jul 2021 18:00:22 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=dkfnI+bO header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=inkswinc@gmail.com smtp.helo=mail-yb1-f172.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1625176822; bh=+KmRaKKorxbyqx8O cfOkG2Qe3XXeWJEE7YgJNFGDn/4=; b=NT8+awcBJyMCM6CDKuMQcKTzp/9LygoR vNgZldBN6j2wsJOs3EnppkL2XyhT1J45U2sm5oRu2TTLGEFmKJh/MOJYN2Q1ctzh mJuMhlpdIE6miWo5zVw2zjqfC8yHNNOgqfgZc6kSnABVTxzKD8os/YaX8LLJ8oMD NfY4E6F+4Rc= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1625176822; b=XwCkpClwkg0n/CL0bWKhcrqV35Ey7wY18QIbkGhLSLSguR3mFy lQ1L/y58YESM575QyF1c8D/sbMWYN2ARXrOtFTM9+BNmC5/bGtRfs5/EQQpjQf6I BbXJ430J7yNavWgU9cQn4uvfbChsWbe2NxKZQZF0F4D9G8J9J0LNRum1A= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=dkfnI+bO header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=inkswinc@gmail.com smtp.helo=mail-yb1-f172.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=dkfnI+bO header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.219.172 (mail-yb1-f172.google.com); spf=pass smtp.mailfrom=inkswinc@gmail.com smtp.helo=mail-yb1-f172.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=NGCG48Ef; x-me-sender=none; x-ptr=pass smtp.helo=mail-yb1-f172.google.com policy.ptr=mail-yb1-f172.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=FbAdir4FyBx1JtWelCfBGB1tVv2/eeUrcDp+C5dtqDw=; b=NfhV2/9iwZvK kMh8dffguQcK4fGEYnifsHJdE0cFwLwqOE1/K9cpShc6M7lAYwrMBctoRP8iEXGR qp/7ndTLvqdfE0KerfqovLEgfVHYzuP25Po88JXDmEd0/pIeE72epLBKOzghFa1i YnsHiUtNVFvO7//L3ra7Zxkx655g/CU= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 6BEDE2B6D6F8 for <9fans@9fans.net>; Thu, 1 Jul 2021 18:00:10 -0400 (EDT) (envelope-from inkswinc@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 14B56585C9E; Thu, 1 Jul 2021 18:00:10 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1625176809; b=lMF9G45EplX1yP6NLkHj7mcSM6USUJwwdr4hABtEKUHSROZuFE nrzTzwrr8Cy0hJ60MBJd8G9cJpcsn0U0kWjHwQVTM4Zk2Q1qzcu5zvr/3dp2OZBs kxBJZPVsJ6beasB99GfIgAFdPuSGpH3WBYYo24qfgR2FzWa7aLoPGmF/FcL+MDcZ 8nBsA90ujc0c4VrFwBA0Ztb1eF+FIeGSkgBmN/Gi4nN1c7KqDKv2Ku6weG7Ywcvj ghUHj5LhhQsaXjrQBHdInFCntL7TO9ODnlsFZ1vaY6t26WAamrlL4gFd1rHFvARt 1jt2PM4W+kbyAsODb9KdCtabkxM1eUZG0f6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1625176809; bh=CZUXuz5crk/K2EcnH8pBbhAza6zOq9nJ9Q0R8ihf6Qo=; b=T9voFVgjo/NN iC8eqHZEkZXxmmZgzNNq/KnUL1LomGf4fBn9RYDn44OeGjzFfaq/hImzzALx4KCZ /7izhwN+eRTaPytbuRytRfZPI9RPWT9m+8Xc0hVkmLqm/IebJ34kvp9ndVRN67Gp Cb5sTFFLe+y2VBOxB/sFWnBFqDmbOIEFEnxAvc4KCUStxC/D5Nm0Vn7a+DdNEEZX 7338ea4gpzj2Wfp3ly6yeFTFUkK+4tIxfhm0SOezkvydM6GX/PF3My/JWA3XDlr8 WQtW/h6dG0VRpa+7sSIh2cL654RNR3FHmGZvhvYtz3ikBMTztGiGuPOwg4czKDR0 KZW4F8RykQ== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=dkfnI+bO header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.219.172 (mail-yb1-f172.google.com); spf=pass smtp.mailfrom=inkswinc@gmail.com smtp.helo=mail-yb1-f172.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=NGCG48Ef; x-me-sender=none; x-ptr=pass smtp.helo=mail-yb1-f172.google.com policy.ptr=mail-yb1-f172.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeiiedgudehlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepgghfjg fhfffkuffvtgesthdtredttddtjeenucfhrhhomhepufhilhgrshcuofgtvehrohhskhgv hicuoehinhhkshifihhntgesghhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhephe ejieffffevleduuefhhffhffehtdeuleegueetfeefudekgeeltdeiffeuudelnecukfhp pedvtdelrdekhedrvdduledrudejvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepihhnvghtpedvtdelrdekhedrvdduledrudejvddphhgvlhhopehmrghilhdqhigs uddqfhdujedvrdhgohhoghhlvgdrtghomhdpmhgrihhlfhhrohhmpeeoihhnkhhsfihinh gtsehgmhgrihhlrdgtohhmqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'inkswinc@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="inkswinc@gmail.com"; helo=mail-yb1-f172.google.com; client-ip=209.85.219.172 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Thu, 1 Jul 2021 18:00:09 -0400 (EDT) (envelope-from inkswinc@gmail.com) Received: by mail-yb1-f172.google.com with SMTP id s129so13303715ybf.3 for <9fans@9fans.net>; Thu, 01 Jul 2021 15:00:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=CZUXuz5crk/K2EcnH8pBbhAza6zOq9nJ9Q0R8ihf6Qo=; b=NGCG48EfpHVgLvxkJerLuvi+9u940y3UxODeg4EHBcgd3mKrh6yEEgosy0TSLwBRQ5 3Ir3uSz1gk8F7cwb4/vSqgclSryCTg0I+GDIe7E0zyGdZTX0l4FQBRez14gjsp4uelVk N8iKnaljkDZoNrfmizfZ0Hnf9In+QjGd4adidzCYw8gbwZP5n8BMGlQbuaSGfHui2p4s Ln2H3iSiGrh5VmCW+RTHp7eSJvAUkZPmIJj4uULx2mrDXhc0iIJUyVwpaeD3z0lSQHgW xgOSd00ZYmN2N6mUhIDFcCRhKg/bgLrOYB2NnWaZEy9+8Crc/bpahcDWlEMizDxUQ49k prTw== X-Gm-Message-State: AOAM532P/yQ6bbBAJaJ8Z5S057SL/FyY8CWlWJDJ7UYrBcX17KVyltEX G1Ez8uNOPn1affX2P61mmwB3bzfSqwhL1HQXvpUNXPbo X-Google-Smtp-Source: ABdhPJwC7nwDVs/0IjW85V/FhK8RrgWOE3R/l7mHoB1ycmKFloCqIaYJftnmVphP8QToMvF+YSl799FFLydeYd6YsJI= X-Received: by 2002:a25:6894:: with SMTP id d142mr2572028ybc.399.1625176808136; Thu, 01 Jul 2021 15:00:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Silas McCroskey Date: Thu, 1 Jul 2021 14:59:57 -0700 Message-ID: Subject: Re: [9fans] Sam tricks (was: Alternative to fine-grained mouse usage?) To: 9fans <9fans@9fans.net>, eekee57@fastmail.fm, ftrvxmtrx@gmail.com Content-Type: text/plain; charset="UTF-8" Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: b81dd5f2-dab7-11eb-a471-81927040f397 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UMjc0YmJmMzAzN2UwZWRiMS1NYjZiODY2ZDEzYzg5ZTZhMzY2NTZi?= =?UTF-8?B?MmUzPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mb6b866d13c89e6a36656b2e3:1:RuAp8aO1Y4y8skuupn9dOjc13ElmBj3bX4uFVhc-_9I > often switching files, Sam's menus are practically worse than Acme > The weakest point in sam -d is still switching files, you have to type > whole filenames X/pathregex/b sam will dump a warning about an expected blank, but it'll otherwise do what you hope for (switch to the open file matching the regex). > Loading a rc file with a bunch of "fn ... {" simplifies things quite a l= ot in general Seconded on ^ and _ (though I rarely use the latter). I use "bind -b lib/sam /bin" within sam, though, as I prefer separate files so I can organize stuff by language and such (e.g. ^c/ind indents . with tabs, ^py/ind indents . with spaces, and language-specific poor-man's parsing for stuff like selecting the entire body of the function you're in). Also nice: a lot of my "scripts" just use "#!/bin/sed 1d" or "#!/bin/sed /^#/d" so they don't need to mess with shell evaluation at all, e.g.: mystia% cat lib/sam/d #!/bin/sed /^#/d ,> diff -c $% /fd/0 (outputs the diff between the buffer and the file -- mostly ends up in /tmp/sam.err) mystia% cat lib/sam/gd #!/bin/sed /^#/d !@{cd `{basename -d $%} && git/diff `{basename $%}} (outputs the git diff of the current file -- mostly ends up in /tmp/sam.err) - sam-d ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T274bbf3037e0edb1-Mb6b86= 6d13c89e6a36656b2e3 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription