Re: [O] Link "bracket-types"

2018-05-17 Thread Michael Brand
Hi all On Sat, May 12, 2018 at 10:12 AM, Michael Brand wrote: > Thank you for the patch. I changed it (attached) to something that > preserves org-toggle-link-display and allows more different configs > for more different usages, please see the docstring of >

Re: [O] Link "bracket-types"

2018-05-13 Thread Eric S Fraga
On Saturday, 12 May 2018 at 16:35, Samuel Wales wrote: > in case op or anybody else is wondering why i pasted random code, this > will show the link location when cursor is over the link. Excellent! Thank you very much. Works like a charm. -- Eric S Fraga via Emacs 27.0.50, Org

Re: [O] Link "bracket-types"

2018-05-12 Thread Samuel Wales
in case op or anybody else is wondering why i pasted random code, this will show the link location when cursor is over the link. On 5/10/18, Samuel Wales wrote: > (add-hook 'org-mode-hook 'alpha-eldoc-help-echo-mode) > ;; fixme in elisp we want both link eldoc and elisp

Re: [O] Link "bracket-types"

2018-05-12 Thread Michael Brand
Hi Nicolas Thank you for the patch. I changed it (attached) to something that preserves org-toggle-link-display and allows more different configs for more different usages, please see the docstring of org-link-brackets. I tried it out with org-toggle-link-display and for org-link-brackets '(0 0),

Re: [O] Link "bracket-types"

2018-05-11 Thread Nicolas Goaziou
Michael Brand writes: > Do you mean here attached and updated as of today? I meant to attach it, but apparently forgot. I attach it here for other feedback. > Currently we disagree in that you suggest one bracket where I prefer > none for descriptive links and you

Re: [O] Link "bracket-types"

2018-05-11 Thread Michael Brand
On Fri, May 11, 2018 at 3:10 PM, Nicolas Goaziou wrote: > Completing myself, > > Nicolas Goaziou writes: > >> If you mean that fontification should show one pair of brackets instead >> of hiding them all, I suggested it already, users found it

Re: [O] Link "bracket-types"

2018-05-11 Thread Eric S Fraga
On Friday, 11 May 2018 at 14:34, Nicolas Goaziou wrote: > Hello, > > Eric S Fraga writes: > >> Feature request: would it be possible to have the link echoed in the >> minibuffer when point enters or is on a link? I don't use the mouse at >> all and always end up having to C-c

Re: [O] Link "bracket-types"

2018-05-11 Thread Nicolas Goaziou
Completing myself, Nicolas Goaziou writes: > If you mean that fontification should show one pair of brackets instead > of hiding them all, I suggested it already, users found it added too > much cruft. > > You may want to check ML archives about it. I searched the ML

Re: [O] Link "bracket-types"

2018-05-11 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > Feature request: would it be possible to have the link echoed in the > minibuffer when point enters or is on a link? I don't use the mouse at > all and always end up having to C-c l to see what the link is. You can use :activate-func link

Re: [O] Link "bracket-types"

2018-05-10 Thread Nicolas Goaziou
Michael Brand writes: > In the meantime I tried a changed org-activate-links > > #+begin_example > - (visible-start (or (match-beginning 4) (match-beginning > 2))) > + (visible-start (or (match-beginning 4) start)) > -

Re: [O] Link "bracket-types"

2018-05-10 Thread Michael Brand
Hi Nicolas On Thu, May 10, 2018 at 6:27 PM, Nicolas Goaziou wrote: > IIUC, you want fontification to make it obvious there are square > brackets in links, so that you know when they can be removed, for > improved readability outside Org. Yes, and generally just to see

Re: [O] Link "bracket-types"

2018-05-10 Thread Samuel Wales
(add-hook 'org-mode-hook 'alpha-eldoc-help-echo-mode) ;; fixme in elisp we want both link eldoc and elisp eldoc (defun hoka-eldoc-help-echo-at-point () "Eldoc thingy for help-echo text properties." (let ((val (get-text-property (point) 'help-echo))) val)) (defun alpha-eldoc-help-echo-mode

Re: [O] Link "bracket-types"

2018-05-10 Thread Nicolas Goaziou
Michael Brand writes: > Only when I can see the brackets of case 3 in Org rendered as > : [[https://en.wikipedia.org/wiki/Filter]] > I know that I can change it to > : https://en.wikipedia.org/wiki/Filter > for a cleaner view in non-Org tools. > > For case 1 I still

Re: [O] Link "bracket-types"

2018-05-10 Thread Michael Brand
Hi Nicolas On Thu, May 10, 2018 at 3:33 PM, Nicolas Goaziou wrote: > Sorry for being dense, but I still don't get it. I can not claim to have been clear enough, hope to make it clearer below. > When using non-Org tools, the solution doesn't belong to Org, does it? > I

Re: [O] Link "bracket-types"

2018-05-10 Thread Nicolas Goaziou
Michael Brand writes: > Because I care about the raw file content that I see when using > non-Org tools like mainly git but also diff, grep, less, vi and > whatever. Sorry for being dense, but I still don't get it. When using non-Org tools, the solution doesn't

Re: [O] Link "bracket-types"

2018-05-10 Thread Michael Brand
Hi Nicolas On Thu, May 10, 2018 at 2:44 PM, Nicolas Goaziou wrote: > I still don't understand what your use case is about. Why do you care > about the presence of square brackets? Because I care about the raw file content that I see when using non-Org tools like mainly

Re: [O] Link "bracket-types"

2018-05-10 Thread Nicolas Goaziou
Michael Brand writes: > My use case is different, see above, and I don't like to move point or > mouse for my use case. I still don't understand what your use case is about. Why do you care about the presence of square brackets? It is difficult to think about the

Re: [O] Link "bracket-types"

2018-05-10 Thread Michael Brand
Hi Nicolas Thank you for looking into this. On Thu, May 10, 2018 at 10:14 AM, Nicolas Goaziou wrote: > Just move the mouse over them. A tooltip or the minibuffer will display > what the link is really. During my use case I don't care what URL the link opens. I want to

Re: [O] Link "bracket-types"

2018-05-10 Thread Eric S Fraga
On Thursday, 10 May 2018 at 10:14, Nicolas Goaziou wrote: > Michael Brand writes: [...] >> As you know and can see above 1) to 3) can not be distinguished when >> rendered with the default of org-descriptive-links t. > > Just move the mouse over them. A tooltip or

Re: [O] Link "bracket-types"

2018-05-10 Thread Nicolas Goaziou
Hello, Michael Brand writes: > > For the four different Org link "bracket-types" shown below I would > like to have four different faces to be able to distinguish them at > first sight. What is the recommended way to do this? This is not possible. I'm not even sure