[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-explorer a30fc60 15/29: Actually respect the settin
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/ivy-explorer a30fc60 15/29: Actually respect the setting of `ivy-explorer-max-columns` |
Date: |
Tue, 12 Mar 2019 09:04:36 -0400 (EDT) |
branch: externals/ivy-explorer
commit a30fc60331b120bd0c5ef2220d284933b7832093
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Actually respect the setting of `ivy-explorer-max-columns`
---
ivy-explorer.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ivy-explorer.el b/ivy-explorer.el
index 351ac8d..bdf4e0a 100644
--- a/ivy-explorer.el
+++ b/ivy-explorer.el
@@ -67,7 +67,7 @@ Line is drawn between the ivy explorer window and the Echo
Area."
:group 'ivy-explorer
:type 'boolean)
-(defcustom ivy-explorer-max-columns nil
+(defcustom ivy-explorer-max-columns 4
"If given the maximal number of columns to use."
:group 'ivy-explorer
:type 'integer)
@@ -172,11 +172,11 @@ Only the background color is significant."
(defvar ivy-explorer--row-n nil
"Current row size of grid.")
-(defun ivy-explorer--get-menu-string (strings &optional cols width)
+(defun ivy-explorer--get-menu-string (strings cols &optional width)
"Given a list of STRINGS create a menu string.
-The menu string will be segmented into columns. If COLS is given
-use at max COLS columns (defaults to 4). Decision for number of
+The menu string will be segmented into columns. COLS is the
+maximum number of columns to use. Decisions to use less number of
columns is based on WIDTH which defaults to frame width. Returns
a cons cell with the (columns . rows) created as the `car' and
the menu string as `cdr'."
@@ -184,7 +184,7 @@ the menu string as `cdr'."
(let* ((length (apply 'max
(mapcar #'string-width strings)))
(wwidth (or width (frame-width)))
- (columns (min (or cols 4) (/ wwidth (+ 2 length))))
+ (columns (min cols (/ wwidth (+ 2 length))))
(rows 1)
(colwidth (/ wwidth columns))
(column 0)
- [elpa] externals/ivy-explorer 3325d82 02/29: Add bol/eol commands for grid (#6), (continued)
- [elpa] externals/ivy-explorer 3325d82 02/29: Add bol/eol commands for grid (#6), Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 5161d5f 06/29: Remove unused ivy-explorer-lv-force-update variable, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 545e0a9 05/29: Make message function a user option, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer e7e2e4e 12/29: Improve posframe support, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 918c133 11/29: Add row counter variable, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 35ee473 13/29: Skip first line when parsing posframe buffer for avy, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer af08f55 03/29: Refactoring, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 5475145 01/29: Add Elpa badge, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 1da2e48 16/29: Increase default number of columns to 5, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 4c19171 22/29: Add ivy-explorer-read function to read any colledtion with the grid, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer a30fc60 15/29: Actually respect the setting of `ivy-explorer-max-columns`,
Clemens Radermacher <=
- [elpa] externals/ivy-explorer 4a48ec4 17/29: Add posframe screenshot, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer bc207da 10/29: Add basic posframe support for #7, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer f9e3b7a 07/29: Add auto-init-avy option, and improve avy exit behaviour, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 9af0805 27/29: Improve ivy-explorer-read function again, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer e4bb026 26/29: Allow specifying height of grid display, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 5fb5512 20/29: Only parse visible window part for avy selection with posframe, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 6245f34 28/29: Change some frame paramaters for better posframe display, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 72a511e 21/29: Don't keep avy on after first use, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 384e241 18/29: Use ivy posframe dispatching done when using posframe, Clemens Radermacher, 2019/03/12
- [elpa] externals/ivy-explorer 5f9dafc 29/29: Version bump, Clemens Radermacher, 2019/03/12