hyperbole-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hyperbole implicit buttons for git


From: Robert Weiner
Subject: Re: Hyperbole implicit buttons for git
Date: Wed, 21 Apr 2021 01:09:34 -0400

On Sat, Apr 17, 2021 at 6:21 AM <wisepenguin@btopenworld.com> wrote:

Hi Bob,

Thanks to you and Mats for all the work on Hyperbole.

I'm fascinated by what it can do as it seems to offer a nice blend of power and "transparency" making for a more pleasant interaction inside Emacs.

Doing M-<RET> on the commit ref in *shell* where Hyperbole does kick in then issues...

(cd $DIR; git show $REF)

this does not work using the default cmd.exe on Windows due to at least 2 reasons

* ; does not work. Using && does

* When $DIR contains "~" it does not work and needs to be expanded first.

So on Windows a working command is

(cd "/full/path/to/dir" && git show $REF)

It's ok to use forward slashes in the path on Windows.

The simplest patch would be to always use && on all systems as that should work everywhere. That would leave a remaining patch to handle expanding if necessary. Any thoughts?

Kinds Regards

Richard


Hi Richard:

Thanks for your idea.  We have implemented it and pushed it to the latest Hyperbole git commit tip for you to try out if you want to experiment with the latest unreleased version.  This should be released as version 8 in about a week if you prefer to wait.

To try it now, install Hyperbole by executing this code snippet:

;; Install straight, use-package and Hyperbole
(progn
  (defvar bootstrap-version)
  (setq package-enable-at-startup nil)
  (let ((bootstrap-file
         (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
        (bootstrap-version 5))
    (unless (file-exists-p bootstrap-file)
      (with-current-buffer
          (url-retrieve-synchronously
           "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
           'silent 'inhibit-cookies)
        (goto-char (point-max))
        (eval-print-last-sexp)))
    (load bootstrap-file nil 'nomessage))
  (straight-use-package 'use-package)
  (use-package hyperbole
    :straight t
    :config
    (hyperbole-mode 1)
    :bind* ("<M-return>" . hkey-either))) ;; To enable Hyperbole Smart Keys in org-mode  

Cheers,

Bob

reply via email to

[Prev in Thread] Current Thread [Next in Thread]