Skip to content
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

Hiding orgtrello-id texts #98

Closed
pinard opened this issue Dec 15, 2013 · 6 comments
Closed

Hiding orgtrello-id texts #98

pinard opened this issue Dec 15, 2013 · 6 comments

Comments

@pinard
Copy link

pinard commented Dec 15, 2013

Hi, Antoine. (long time no speak!)

The orgtrello-id fragments within Trello Org files are rather distracting or polluting, so I'm experimenting with this code within org-mode-hook to hide them:

     (save-excursion
        (goto-char (point-min))
        (when (search-forward ":PROPERTIES: {\"orgtrello-id\":" nil t)
          (font-lock-add-keywords
           nil '((" *:PROPERTIES: {\"orgtrello-id\":[^}\n]+}"
                  (0 (add-text-properties (match-beginning 0) (match-end 0)
                                          '(invisible org-link))))))))

This code seems to work for me, yet I'm not sure I understand it fully — I've been merely copying similar code from file to file for a long time :-).

Maybe org-trello could install something similar right in its minor mode?

François

@ardumont
Copy link
Member

Hi,

Thanks for this pointer, this is really interesting.
This could be the answer for many alignment problems
(some mode code to eradicate, the lesser the easier to maintain!)

Those properties are needed for org-trello but the users do not care about this!
So hiding them would be a great way!

This code seems to work for me, yet I'm not sure I understand it fully...

I Will look into this.

Maybe org-trello could install something similar right in its minor mode?

If it works, this will be installed on default.

@pinard
Copy link
Author

pinard commented Dec 16, 2013

By the way, Antoine, a little trick I often use is:

(global-set-key "\C-cev" 'visible-mode)

Use any global keybinding you want, not necessarily mine. The idea is to have the capability of quickly turning visible mode on and off. Then you can reveal or hide invisible code at will. This is useful to me a bit everywhere in Org files, too, especially for me who is found on setting org-hide-emphasis-markers to t.

François.

@pinard
Copy link
Author

pinard commented Dec 16, 2013

Oops! There was a missing closing brace in the code I submitted above, sorry, Just added it.

@ardumont
Copy link
Member

Hi,

Thanks again for those pointers.

@ardumont
Copy link
Member

ardumont commented Jan 5, 2014

status

  • checkbox property "orgtrello-id" is a needed property to permit trello checklist/item identification
  • but they are user-noisy

idea

  • hide checkbox property "orgtrello-id" to avoid "noisiness"

limit

  • once hidden, org-trello must still be able to get/put the property when parsing the file

@ardumont ardumont mentioned this issue Jan 19, 2014
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants