All Projects → stardiviner → Org Link Beautify

stardiviner / Org Link Beautify

Licence: gpl-3.0
Beautify org links with colors and icons.

Projects that are alternatives of or similar to Org Link Beautify

Craft3 Iconpicker
Craft plugin that provides a new field type that offers end users an easy way to pick an icon from a .woff or .ttf font file. You can easily use ionicons or font awesome icons or any other compatible font file.
Stars: ✭ 15 (-70%)
Mutual labels:  icons
Org Reverse Datetree
Reversed date trees for Emacs Org mode
Stars: ✭ 33 (-34%)
Mutual labels:  org-mode
Vscode Icons
Custom Visual Studio Code Icons
Stars: ✭ 1,021 (+1942%)
Mutual labels:  icons
Unicons
1000+ Pixel-perfect vector icons and Iconfont for your next project.
Stars: ✭ 911 (+1722%)
Mutual labels:  icons
Tileiconifier
Creates tiles for most Windows 8.1 and 10 start menu icons
Stars: ✭ 957 (+1814%)
Mutual labels:  icons
Organic
Outliner, organizer and notes management app.
Stars: ✭ 34 (-32%)
Mutual labels:  org-mode
Dotfiles
🌸 Aesthetic OpenboxWM Environment (Completed Setup)
Stars: ✭ 873 (+1646%)
Mutual labels:  icons
Font Awesome Php
A PHP library for Font Awesome 4.7.
Stars: ✭ 47 (-6%)
Mutual labels:  icons
Coldnew Emacs
coldnew's emacs config
Stars: ✭ 32 (-36%)
Mutual labels:  org-mode
React Native Alternate Icons
React Native Alternate Icons for iOS 10.3+
Stars: ✭ 42 (-16%)
Mutual labels:  icons
Cdpvideorecord
An video camera,you can have realtime of a beautify,and change camera position,or turn on/off flash.Details see demo.
Stars: ✭ 27 (-46%)
Mutual labels:  beautify
Omnifocus Perspective Icons
Perspective icons designed specifically for OmniFocus 3 for Mac and iOS
Stars: ✭ 956 (+1812%)
Mutual labels:  icons
Masalla Icon Theme
Masalla Icon Theme for UNIX-Like OS
Stars: ✭ 34 (-32%)
Mutual labels:  icons
Get Social Social Media Font
Font Based Social Media Icon Set
Stars: ✭ 15 (-70%)
Mutual labels:  icons
Android Dev
⚡️ Curated list of resources for Android app development. Prepare for battle!
Stars: ✭ 44 (-12%)
Mutual labels:  icons
Fork Awesome
A fork of the iconic font and CSS toolkit
Stars: ✭ 878 (+1656%)
Mutual labels:  icons
Anonymous Animals
anonymous animal icons used for anonymous users extracted from Google Docs
Stars: ✭ 33 (-34%)
Mutual labels:  icons
React Icomoon
It allows you to simply view the icons in the selection.json file provided by Icomoon.
Stars: ✭ 48 (-4%)
Mutual labels:  icons
Gbz overlay
Gameboy Zero status icon overlay display
Stars: ✭ 46 (-8%)
Mutual labels:  icons
Blade Zondicons
A package to easily make use of Zondicons in your Laravel Blade views.
Stars: ✭ 40 (-20%)
Mutual labels:  icons
  • Motivation

Usually Org links only have text, it's not very intuitive to recognize what type of link it is. Add some color and icon, even image preview will help user read links.

  • Screenshots

Annotate link with icon to indicate link type. And use color to indicate link file exist or not?

#+ATTR_ORG: :width 600 #+ATTR_LATEX: :width 6.0in #+ATTR_HTML: :width 600px [[file:screenshot.png]]

Supports video file link preview with thumbnail.

#+ATTR_ORG: :width 600 #+ATTR_LATEX: :width 6.0in #+ATTR_HTML: :width 600px [[file:video-thumbnail.png]]

  • Features [9/10]
  • [X] Only display org-link-beautify preview images (and icons) when headline expanded. This will reduce Emacs memory and improve performance!!!

  • [X] support colorize links if file: target file does not exist

  • [X] support display icons for link types (currently already supported many link types)

  • [X] supported many different link types (If you found not supported link type, PR welcome!)

  • [X] display image for previewing image file

  • [X] display image for previewing PDF file and preview of specific PDF page number. Like this: #+begin_src org [[file:/path/to/filename.pdf]] #+end_src #+begin_src org [[pdfview:/path/to/filename.pdf::15]] #+end_src

    Currently support PDF link types:

    • pdfview:
    • docview:
    • eaf:pdfviewer::
  • [X] display thumbnail for video file link

  • [X] preview audio file link with wave form image

  • [X] add keymap on link text-property, available keybindings:

    • =[Enter]= :: =org-open-at-point=, so you can press =[Enter]= to open link.

    You can add more keybindings with following similar config:

    #+begin_src emacs-lisp :eval no (define-key org-link-beautify-keymap (kbd "RET") 'org-open-at-point) #+end_src

  • Install
  • all-the-icons :: This Emacs package icons use "[[https://github.com/domtronn/all-the-icons.el][all-the-icons]]". If you got icon problem. You need to make sure all-the-icons AND FONTS installed correctly.

  • video thumbnail feature needs package "=ffmpegthumbnailer="

    For Arch Linux:

    #+begin_src sh :dir /sudo:: :results none sudo pacman -S --noconfirm ffmpegthumbnailer #+end_src

  • audio wave form image preview need package "=audiowaveform="

    Check out https://github.com/bbc/audiowaveform for installation guide.

  • PDF file preview with command "=pdftocairo=" or "=pdf2svg="

    For Arch Linux:

    #+begin_src sh :dir /sudo:: :results none sudo pacman -S --noconfirm poppler # command pdftocairo sudo pacman -S --noconfirm pdf2svg # command pdf2svg #+end_src

  • EPUB file cover image preview need command "=gnome-epub-thumbnailer="

    #+begin_src sh :dir /sudo:: :results none sudo pacman -S --noconfirm gnome-epub-thumbnailer #+end_src

  • Usage

#+begin_src emacs-lisp (org-link-beautify-mode 1) ; (ref:toggle org-link-beautify-mode) #+end_src

** If you want better better performance

You can toggle this option carefully to improve Org org-activate-links performance:

#+begin_src emacs-lisp (setq org-element-use-cache t) #+end_src

  • Link examples

NOTE: Because =all-the-icons= fonts has some issue on my system, so bellowing some icons might not correctly displayed. And some links are not beautified because I have not found suitable icons for them. And if file: link type source file is not available, it will be colored. If you have any idea, PR welcome.

#+begin_src org

  • file link [[file:babel-R.org][kkk]]
    • remote file
    • non-existing file
    • video thumbnail for video file link [[file:~/Downloads/Neural Network Architectures-oJNHXPs0XDk.mkv]]
  • raw link [[file:babel-clojure.org]]
  • file+sys link [[file+sys:README.org]]
  • file link smart recognize file types [[file:~/Downloads/8-个税政治成本最高 对社会公平毫无帮助[李稻葵].pdf]]
  • directory link [[file:~/Downloads/][Downloads]]
  • URL link (use different icons based on url with smart all-the-icons) [[https://www.google.com]]
  • elisp link [[elisp:(print "hello, org-link-beautify!")]]
  • shell link [[shell:echo "hi"]]
  • eww link [[eww:https://www.baidu.com]]
  • A mu4e link [[mu4e:msgid:[email protected]][Re: [Suggestion] add an API function for getting link description]]
  • Git link [[git:/home/stardiviner/Code/Emacs/org-mode/lisp/org.el::[email protected]{2017-06-24}::1]]
  • orgit link
  • orgit-rev link
  • orgit-log link
  • pdfview link [[pdfview:~/Downloads/社会网络 深度图查询.pdf]]
  • grep link [[grep:org-link-beautify]]
  • occur link [[occur:org-link-beautify]]
  • man link [[man:grep]]
  • info link [[info:emacs]]
  • help link [[help:man]]
  • rss link [[rss:https://www.gmail.com]]
  • elfeed link [[elfeed:Today's news]]
  • telnet link
  • wikipedia link [[wikipedia:Linux]]
  • mailto link [[mailto:[email protected]]]
  • doi link [[doi:what?]]
  • EAF link [[eaf:pdf-viewer::/home/stardiviner/Org/Wiki/Computer Technology/Programming/Programming Languages/Database/SQL/PostgresQL/Data/Books/PostgreSQL即学即用中文第2版.pdf::46][PostgreSQL即学即用中文第2版.pdf]] #+end_src
  • FAQ

NOTE: This Emacs package icons use "[[https://github.com/domtronn/all-the-icons.el][all-the-icons]]". If you got icon problem. You need to make sure all-the-icons and fonts installed correctly.

  • Contributions
  • Thanks to John Kitchin and Nicolas Goaziou help in Org Mode mailing list.
  • And [[https://emacs-china.org/t/icon-org-mode/13147][yuchen-lea's screenshot]] gives me design idea
  • pdf file link preview inspired from [[https://github.com/shg/org-inline-pdf.el][org-inline-pdf.el]]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].