Giter Club home page Giter Club logo

ftable's Introduction

ftable.el

https://elpa.gnu.org/packages/ftable.svg

This package provides some convenient commands for filling a table, i.e., adjusting the layout of the table so it can fit in n columns.

./ftable.gif

Commands provided:

ftable-fill
Fill the table at point
ftable-reformat
Change the style of the table. For example, from
ASCII +--+--+ to Unicode ┌──┬──┐
      |  |  |            │  │  │
      +--+--+            └──┴──┘
ftable-edit-cell
Edit the cell at point

There are some limitations. Currently ftable doesn’t support tables with compound cells (cells that span multiple rows/columns) because they are more complicated to handle. If the need arises in the future (unlikely), I might improve ftable to handle more complex tables. Also, after filling, any manual line-break in a cell is discarded.

Customization

ftable-fill-column
fill-column for ftable.

ftable's People

Contributors

casouri avatar

Stargazers

Ravioli avatar  avatar DarkBuffalo avatar driftcrow avatar  avatar 芬格尔 avatar Mohammed Zeglam avatar Eki Zhang avatar yibie avatar Luke Yao avatar  avatar Maikol Solís avatar Luiz Tagliaferro avatar Andrea Greselin avatar Case Duckworth avatar FCP avatar Juan A. Ruz avatar pixor avatar stardiviner avatar  avatar Jens Östlund avatar SteamedFish avatar  avatar  avatar  avatar Ezequiel Birman avatar Conscat avatar Robert Weiner avatar  avatar Ramses avatar  avatar Oleg Pykhalov avatar 我没有抓狂 avatar Mateus Harrington avatar lialzm avatar Furkan Karataş avatar Clemens Radermacher avatar Ugur avatar Daniel Kraus avatar Paul Jewell avatar James Conroy-Finn avatar Rune Juhl Jacobsen avatar Marlin Strub avatar  avatar ionling avatar DaVinci789 avatar Geekinney avatar

Watchers

James Cloos avatar Jens Östlund avatar  avatar  avatar  avatar Geekinney avatar

Forkers

emacsmirror

ftable's Issues

执行ftable系列命令提示valign-box-char为void

不论执行ftable-fill还是ftable-reformat,都会提示:
Symbol’s function definition is void: valign-box-char
不知道问题出在哪里,是不是配置错误?

我的配置如下:
(use-package ftable
:quelpa ((ftable :repo "casouri/ftable" :fetcher github) :upgrade t)
:init
(require 'ftable)
:custom
(ftable-fill-column 20))

相应的,我也有使用你写的valign,配置如下:
(use-package valign
:quelpa ((valign :repo "casouri/valign" :fetcher github) :upgrade nil)
:config
(setq valign-fancy-bar t)
:hook
((org-mode . valign-mode)))

Default horizontal lines are not recognized

Hello, thanks for your package, this was a feature a was looking for.

When I create a table with default horizontal lines like |----+-----+----| your ftable--table-info return tablep = nil. Editing horizontal lines like in your readme +----+-----+----+ solves the problem but I need to edit them manually every time.

Setting ftable-box-charset-alist variable will solve this issue probably but I wanted to open this PR to know why you use custom hlines. Is there any way to change how org inserts hlines?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.