Skip to content

Large Table Edition in Org and Markdown buffers for Emacs

License

Notifications You must be signed in to change notification settings

fredericgiquel/lte.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lte.el - Large Table Edition in Org and Markdown buffers

https://melpa.org/packages/lte-badge.svg

LTE provides facilities for editing large Org or Markdown table when line-wrapping is enabled (truncate-lines is nil).

Features

  • Provides a minor-mode (lte-truncate-table-mode) that truncates table larger than window width
    • Only show the left part of the table (without horizontal scrolling)
    • The visible part of table remains editable in place
    • Automatically adapt truncation when window is resized or font is scaled
    • Compatible with org-indent
    • Compatible with display-line-numbers
  • Provides a command (lte-edit-table) to open the table at point in an indirect buffer with line-wrapping disabled: useful to see or edit the hidden part of the table

Screenshot

./example.gif

Installation

Prerequisites

  • Emacs 29.1 or later
  • Org 9.6 or later
  • edit-indirect package
  • (optional) markdown-mode package

MELPA

(use-package lte
  :hook ((org-mode markdown-mode) . lte-truncate-table-mode))

Manual Installation

  • Clone this repository:
git clone https://github.com/fredericgiquel/lte.el.git
  • Add the following to your Emacs configuration:
(add-to-list 'load-path "/path/to/lte.el/directory")
(require 'lte)
(add-hook 'org-mode-hook #'lte-truncate-table-mode)
;; If markdown package is installed
(add-hook 'markdown-mode-hook #'lte-truncate-table-mode)

Customization

The option lte-indirect-buffer-disable-minor-mode-list lets you customize the minor modes that should be disabled in indirect buffer used to edit table. All modes that enables line-wrapping and are automatically enabled in Org or Markdown buffers must be added to this list.

About

Large Table Edition in Org and Markdown buffers for Emacs

Resources

License

Stars

Watchers

Forks