unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: laszlomail@protonmail.com, 54905@debbugs.gnu.org
Subject: bug#54905: Allow in tabulated lists to resize columns with the mouse
Date: Fri, 15 Apr 2022 12:06:38 +0200	[thread overview]
Message-ID: <87sfqehd8x.fsf@gnus.org> (raw)
In-Reply-To: <87bkx2iwfe.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 15 Apr 2022 10:27:01 +0200")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> And the divider could definitely be
> draggable (and I'll do that now), but in most setups the divider will
> only be a couple of pixels wide, making dragging it very difficult.

Here's the test vtable I'm twiddling now (you need an up-to-date trunk
to make it work).  You can drag the divider, but it's so narrow that
it's very annoying to attempt to do so...

(defun test-vtable ()
  (when (get-buffer "*vtable*")
    (kill-buffer "*vtable*"))
  (switch-to-buffer "*vtable*")
  (setq truncate-lines t)
  (special-mode)
  (let ((inhibit-read-only t))
    (make-vtable
     :columns '((:name "Name" :width 20) "Size" "File")
     :objects (buffer-list)
     :row-colors '((:background "#303030" :foreground "#ffffff")
		   (:background "#505050" :foreground "#808080"))
     :column-colors '((:background "#202020" :foreground "#00ffff")
		      (:background "#808080" :foreground "#008080"))
     :divider-width 0.1
     :getter (lambda (object column vtable)
               (pcase (vtable-column vtable column)
		 ("Name" (buffer-name object))
		 ("Size" (buffer-size object))
		 ("File" (or (buffer-file-name object) "")))))
    nil))

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2022-04-15 10:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-13 11:59 bug#54905: Allow in tabulated lists to resize columns with the mouse Kiss Dénes via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-04-14 14:04 ` Lars Ingebrigtsen
2022-04-14 16:12   ` Eli Zaretskii
2022-04-14 16:29     ` Lars Ingebrigtsen
2022-04-14 17:15       ` Eli Zaretskii
2022-04-14 17:37         ` Lars Ingebrigtsen
2022-04-14 17:40           ` Lars Ingebrigtsen
2022-04-15  7:45             ` Robert Pluim
2022-04-15  8:27               ` Lars Ingebrigtsen
2022-04-15 10:06                 ` Lars Ingebrigtsen [this message]
2022-04-15 10:42                   ` Robert Pluim
2022-04-15 10:54                     ` Lars Ingebrigtsen
2022-04-15 11:18                     ` Lars Ingebrigtsen
2022-04-15 12:02                       ` Lars Ingebrigtsen
2022-04-15 12:23                         ` Robert Pluim
2022-04-16  9:11                           ` Lars Ingebrigtsen
2022-04-15 16:46               ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfqehd8x.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=54905@debbugs.gnu.org \
    --cc=laszlomail@protonmail.com \
    --cc=rpluim@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).