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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2092 invoked from network); 14 Apr 2023 18:03:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Apr 2023 18:03:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1681495405; b=SRTRAmJUqPUUMFV6l1WaBGBRRJJA1a9eOpteAUKasVZB2M+S0/9iiJwBxTHs0XtMExfYvNWTEN nbdjJQowZv6vBalYvKL6nkL99xaUTkCcAdvfUDwHlc4NaV4qza3DUyrmH0XZUXB5o0HC1NZYrG 2iOS6PE+G1d2hu6Yr1ZU+uXpafjgXjQdcXUwPS8xGXsEXMpu2i0hp8MyLXLP1M89GXwIZuFAKu AuFBCSnXKB7XVsgWs4r4/vmI5qgO/UECO1B09jVqsCmxaxZKStfNeh0LmpxU/nLLhnQv6t5YDn 0aZMyr3wc1mXJsAcCkZKErxKszE55kU1sCAI5UqMzJfnbQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f41.google.com) smtp.remote-ip=209.85.167.41; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1681495405; bh=TUd6UND7FSHK0B3eonUZw9Egy40lKSco69v8evh63yo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=mdqxBbtDFeRoPKICxMXnC5dqFEr3SEpAk0jCTgKgkmL3HlA6VV+5O/OLEt56DT8mQMCcQxOTql LKjsmPPGvyHTF/YBhlMOJw8kQDG2hyL+UmhcxqYBIJyouR/IrKxHvan9x7CDVR7/eZUzYYxWxx ZhCq+MVvypBD9tbucw/C/wdZqGMhFaWPSIrUhS+TxU9BuPlqSb1pTYZBDnFYpIxarJyjIVTSPy wwEfcTmKAbnnkkV4pPpCRrjq8ZNmobTYOfTcw9UOxHWXLCZhxkq0mRMHOtpsXKbUuX47RfNz2J DmGOSTT83oSN9VFMfw3m9fwwcSwv+ZbhtlhetYYqJuq3lw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=TUd6UND7FSHK0B3eonUZw9Egy40lKSco69v8evh63yo=; b=Fk1f+yKW4Ai0A9RtOh8JQcKjUW RzzeOR7cGySuTfXOrzKk/fbJWkJ25uJGgeYooQBqeQWpmCKSLenCr2k8OQFH/YjEqJkisamu8+aoO 3sx2GHA9mIxROFb6CcxOT6RiFjGuQYDSPAfgZUjzwTRf8H+wnXPPPXUhwcesIdFUV6Wjw3Sc0ndTZ S0SKRHgKq4VgfwitdAHWonKJMHWd6yUnSQy1dz+uNGoLA2P4ByR/G6G4QGnF+6RPD7UihmauvxYLw hU3wsNgY0DgDy9gblkIMCJhFTotcFiYqDs3wxgd7oea/7iRceuGzPCUVHtVGaHu7VdFELX/viQIiY okoQf1fw==; Received: by zero.zsh.org with local id 1pnNlc-000Ppx-Ip; Fri, 14 Apr 2023 18:03:24 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f41.google.com) smtp.remote-ip=209.85.167.41; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f41.google.com ([209.85.167.41]:34477) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pnNjm-000PUE-An; Fri, 14 Apr 2023 18:01:32 +0000 Received: by mail-lf1-f41.google.com with SMTP id i6so12720308lfp.1 for ; Fri, 14 Apr 2023 11:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681495289; x=1684087289; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=TUd6UND7FSHK0B3eonUZw9Egy40lKSco69v8evh63yo=; b=Rz8hB81XkJNk7ErAg4ibuwIwEKSRRar6rxnVb6q9WWEbSIzVDR9Co1GAf0jq0l9n5W Fp0EXR4h/eWYPiDjltpMMKjY5IAERetUpU2e8Sjaq5mbocDeuHZirDIi5MsbtXjxuSkY 6Q5m7m1yZ5olv2vE1pK0DYH1v/yDylA49dhp9/Y84YxGiZZAzrN8yGHNEIzI8TZvzDHO I7WO/bsdf2zJ/BucumidYbNryVcUMfKhLEzS4F5UgvkR6ztFYGGsbJ/2VhzX4lnN8M6+ z/GkUVsCq9I3dzrr3kCHbsNM+qoajLOLB4PEIAaTavIFpgw0ASpVsgxvOZK/Rs3WKlzl h5JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681495289; x=1684087289; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TUd6UND7FSHK0B3eonUZw9Egy40lKSco69v8evh63yo=; b=JfINE2ukp0C4CAAloolywJfPZaQ2UNG/zyhsofN/owMES9haSU6NNTIrmUeXEq+qzS eBrfKR/WTlFoX//qB8vLMfLGnnyVdjyG1vCwlzuf2EjIem0LTwezU1LfSg9pefxZam8b ZgfXTV3G5UfH0Cm6d9x4Ycstk6L/JMLraXvo27gwumILgCUkJEMBhW3mjs7yRyejUiZ1 7PWfRmvTSh+BIlScZaDAvIeR1mGWQodVslY3rI8Hxem/bk26vI1wA84uMte5Oj3d9p/a P8lwtxhWXn45k0CjXg5j4DhWVcYRhJgC7kTB8QWu/dQVwQ6dLEUkzn22nqFiOifKjhsy 1O1w== X-Gm-Message-State: AAQBX9euNYM2ofV2uUOfo21h+cs4HMqhBArg7UE5AryKrbouJgymh3d5 +kqTgLf9zSqxSJqQ+z71bzB3b3zQ0tctfjUa8xHkUsbPwbc= X-Google-Smtp-Source: AKy350bPYgWGn0+zHKIzuo91uptPdadDxaxqMxODMjkLYZKVB/n8vVxp8TXyjeTT10g9Ghmzq591TkHV+b0ncP/16Mk= X-Received: by 2002:a19:c517:0:b0:4eb:304f:66ea with SMTP id w23-20020a19c517000000b004eb304f66eamr2178074lfe.13.1681495289225; Fri, 14 Apr 2023 11:01:29 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Fri, 14 Apr 2023 18:01:02 +0000 Message-ID: Subject: A novel, unprecedented approach to command line - n-commodore To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 51654 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: Hi, by accident, I might have discovered a novel approach to command line - a merge of Midnight Commander panels with pure shell. Basically, n-commodore, the project that does this, panelizes each command that you enter and allows multi-keyword grepping. Up to this point, it's like fzf. However, by use of db/gdbm module, n-commodore's also: - allows a persistent save of each of the screens (even of the help screen, e.g.), - the screens are saved and indexed, for later retrieval via Ctrl-Shift-Left/RIight, - they save not only the panel, but also: current PWD, active line in the panel, search query/command line buffer and restores them on fetch. n-commodore is a Zsh script implemented on top of Zui library. Persistence is done via db/gdbm module. You can clone the repo and simply run bin/n-c or use a plugin manager (alias `nc` will be then set up). The login shell can be Bash or any other, if zsh will be installed. Asciicast: https://asciinema.org/a/577630 Homepage: https://github.com/psprint/n-commodore