-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get hyperbole action key to recognize org =verbatim= text? #503
Comments
Hi:
This is a bug that you have found. It should be fixed soon and we'll
report back here. Thanks for finding it. -- rsw
…On Sun, Mar 31, 2024 at 3:43 PM matogoro ***@***.***> wrote:
Hi,
I often use org-mode's =verbatim= markdown when mentioning filenames in
org files, which is useful for text highlighting purposes when I read these
files later. I was also able to get hyperbole to recognize these file paths
with the action key (M-RET) by defining custom delimiters using the defil
macro as follows:
(defil hy-verbatim-find-file "=" "=" ".*" "\\&")
However, this doesn't seem to be working anymore---when I try pressing an
action key on a verbatim filename (e.g., =~/test.txt=), I get an error
(debug below):
Debugger entered--Lisp error: (error "(ibut:to-text): ’lbl-key’ arg must be a string, not: nil")
error("(ibut:to-text): 'lbl-key' arg must be a string, not: %S" nil)
(if (stringp lbl-key) nil (error "(ibut:to-text): 'lbl-key' arg must be a string, not: %S" lbl-key))
ibut:to-text(nil)
hui:hbut-operate(hbut:act "Activate Hyperbole button: " hbut:current)
hui:hbut-act(hbut:current)
hkey-execute(nil)
action-key-internal()
action-key()
hkey-either(nil)
funcall-interactively(hkey-either nil)
command-execute(hkey-either)
Notably, when trying to use the action key (M-RET) on filenames without
delimiters, the action key works correctly. Moreover, when I use different
custom delimiters (e.g., (defil hy-verbatim-find-file "{{" "}}" ".*"
"\\&") --> {{~/test.txt}}), the action key also works correctly---so
maybe it's something intrinsically wrong with using = as a delimiter?
It there some way to reconcile this? Any help would be greatly appreciated!
—
Reply to this email directly, view it on GitHub
<#503>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE5WPD2YWKRBWLRHO464PJLY3BRPJAVCNFSM6AAAAABFQVAJMKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTOMJVGY4TAMI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This bug is now resolved in the Hyperbole source archive at Github. It
will be available for download from melpa or elpa-devel within the next 12
hours. If you just update your hbut.el file manually, that is all you need
to do if you are in a hurry. -- rsw
…On Sun, Mar 31, 2024 at 4:34 PM Robert Weiner ***@***.***> wrote:
Hi:
This is a bug that you have found. It should be fixed soon and we'll
report back here. Thanks for finding it. -- rsw
On Sun, Mar 31, 2024 at 3:43 PM matogoro ***@***.***> wrote:
> Hi,
>
> I often use org-mode's =verbatim= markdown when mentioning filenames in
> org files, which is useful for text highlighting purposes when I read these
> files later. I was also able to get hyperbole to recognize these file paths
> with the action key (M-RET) by defining custom delimiters using the defil
> macro as follows:
>
> (defil hy-verbatim-find-file "=" "=" ".*" "\\&")
>
> However, this doesn't seem to be working anymore---when I try pressing an
> action key on a verbatim filename (e.g., =~/test.txt=), I get an error
> (debug below):
>
> Debugger entered--Lisp error: (error "(ibut:to-text): ’lbl-key’ arg must be a string, not: nil")
> error("(ibut:to-text): 'lbl-key' arg must be a string, not: %S" nil)
> (if (stringp lbl-key) nil (error "(ibut:to-text): 'lbl-key' arg must be a string, not: %S" lbl-key))
> ibut:to-text(nil)
> hui:hbut-operate(hbut:act "Activate Hyperbole button: " hbut:current)
> hui:hbut-act(hbut:current)
> hkey-execute(nil)
> action-key-internal()
> action-key()
> hkey-either(nil)
> funcall-interactively(hkey-either nil)
> command-execute(hkey-either)
>
> Notably, when trying to use the action key (M-RET) on filenames without
> delimiters, the action key works correctly. Moreover, when I use different
> custom delimiters (e.g., (defil hy-verbatim-find-file "{{" "}}" ".*"
> "\\&") --> {{~/test.txt}}), the action key also works correctly---so
> maybe it's something intrinsically wrong with using = as a delimiter?
>
> It there some way to reconcile this? Any help would be greatly
> appreciated!
>
> —
> Reply to this email directly, view it on GitHub
> <#503>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AE5WPD2YWKRBWLRHO464PJLY3BRPJAVCNFSM6AAAAABFQVAJMKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTOMJVGY4TAMI>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
|
Just tested it—works perfectly! Thank you for your amazingly fast response and your help. |
Great, emjoy and keep building implicit button types to simplify your work. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I often use
org-mode
's=verbatim=
markdown when mentioning filenames in org files, which is useful for text highlighting purposes when I read these files later. I was also able to get hyperbole to recognize these file paths with the action key (M-RET
) by defining custom delimiters using thedefil
macro as follows:(defil hy-verbatim-find-file "=" "=" ".*" "\\&")
However, this doesn't seem to be working anymore---when I try pressing an action key on a verbatim filename (e.g.,
=~/test.txt=
), I get an error (debug below):Notably, when trying to use the action key (
M-RET
) on filenames without delimiters, the action key works correctly. Moreover, when I use different custom delimiters (e.g.,(defil hy-verbatim-find-file "{{" "}}" ".*" "\\&")
-->{{~/test.txt}})
, the action key also works correctly---so maybe it's something intrinsically wrong with using=
as a delimiter?It there some way to reconcile this? Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: