zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: Some problems with list scrolling and  menu selection
Date: Thu, 20 Apr 2000 13:35:58 +0400	[thread overview]
Message-ID: <000301bfaaab$d5916b70$21c9ca95@mow.siemens.ru> (raw)

1. The default for starting menu selection is less than user friendly.
Normally, menu selection is started on the second TAB (assuming more or
less standard config; zstyle output follows). With list scrolling TAB
first pages to the end of list and only then starts selection. I think,
TAB should behave the same way here as well. Probably, "least surprise"
for user would be, when TAB in list scrolling jumps to the first shown
match (and not to the very first item in the list). Consider usage - you
first find needed page and then select needed item there.

2. There are problems with scrolling back in menu selection. Try GNU
diff (with verbose on). I did it on dtterm from TriTeal TED 4.2 with
24x80 size.

bor@itsrm2% gdiff -TAB
Completing option
--brief                   -- output only whether files differ
--changed-group-format    -- set changed group format
--changed-line-format     -- set changed line format
--context                 -- context diff
--ed                      -- output an ed script
--exclude                 -- exclude files matching pattern
--exclude-from            -- exclude files matching pattern in file
--expand-tabs             -- expand tabs to spaces
--help                    -- help text
--horizon-lines           -- set number of lines to keep in prefix and
suffix
--ignore-all-space        -- ignore all white space
--ignore-blank-lines      -- ignore lines that are all blank
--ignore-case             -- case insensitive
--ignore-matching-lines   -- ignore lines that match regex
--ignore-space-change     -- ignore changes in the amount of white space
--initial-tab             -- prepend a tab
--label                   -- set label to use instead of file name
--left-column             -- output only left column of common lines
--line-format             -- set line format
--mininal                 -- try to find a smaller set of changes
--new-file                -- treat absent files as empty
--new-group-format        -- set new group format
Showing 23/74

... now some TABs to start menu selection ...

bor@itsrm2% gdiff --brief
Completing option
--brief                   -- output only whether files differ
--changed-group-format    -- set changed group format
--changed-line-format     -- set changed line format
--context                 -- context diff
--ed                      -- output an ed script
--exclude                 -- exclude files matching pattern
--exclude-from            -- exclude files matching pattern in file
--expand-tabs             -- expand tabs to spaces
--help                    -- help text
--horizon-lines           -- set number of lines to keep in prefix and
suffix
--ignore-all-space        -- ignore all white space
--ignore-blank-lines      -- ignore lines that are all blank
--ignore-case             -- case insensitive
--ignore-matching-lines   -- ignore lines that match regex
--ignore-space-change     -- ignore changes in the amount of white space
--initial-tab             -- prepend a tab
--label                   -- set label to use instead of file name
--left-column             -- output only left column of common lines
--line-format             -- set line format
--mininal                 -- try to find a smaller set of changes
--new-file                -- treat absent files as empty
Scrolling active: current selection at Top

... now move to the bottom and scroll one line down ...

bor@itsrm2% gdiff --new-group-format=
--brief                   -- output only whether files differ
--changed-group-format    -- set changed group format
--changed-line-format     -- set changed line format
--context                 -- context diff
--ed                      -- output an ed script
--exclude                 -- exclude files matching pattern
--exclude-from            -- exclude files matching pattern in file
--expand-tabs             -- expand tabs to spaces
--help                    -- help text
--horizon-lines           -- set number of lines to keep in prefix and
suffix
--ignore-all-space        -- ignore all white space
--ignore-blank-lines      -- ignore lines that are all blank
--ignore-case             -- case insensitive
--ignore-matching-lines   -- ignore lines that match regex
--ignore-space-change     -- ignore changes in the amount of white space
--initial-tab             -- prepend a tab
--label                   -- set label to use instead of file name
--left-column             -- output only left column of common lines
--line-format             -- set line format
--mininal                 -- try to find a smaller set of changes
--new-file                -- treat absent files as empty
--new-group-format        -- set new group format
Scrolling active: current selection at 31%

... now move cursor one line up ...

bor@itsrm2% gdiff --new-file

--changed-group-format    -- set changed group format
--changed-line-format     -- set changed line format
--context                 -- context diff
--ed                      -- output an ed script
--exclude                 -- exclude files matching pattern
--exclude-from            -- exclude files matching pattern in file
--expand-tabs             -- expand tabs to spaces
--help                    -- help text
--horizon-lines           -- set number of lines to keep in prefix and
suffix
--ignore-all-space        -- ignore all white space
--ignore-blank-lines      -- ignore lines that are all blank
--ignore-case             -- case insensitive
--ignore-matching-lines   -- ignore lines that match regex
--ignore-space-change     -- ignore changes in the amount of white space
--initial-tab             -- prepend a tab
--label                   -- set label to use instead of file name
--left-column             -- output only left column of common lines
--line-format             -- set line format
--mininal                 -- try to find a smaller set of changes
--new-file                -- treat absent files as empty
--new-group-format        -- set new group format
Scrolling active: current selection at 29%

Note, that the line just under the prompt disappears.

3. Is it possible to retain current Zle line (prompt) at the top when
listing completions? Like menu selection does it. I find it somewhat
confusing as it is.

4. And, of course, scrolling back in completion listing :-)

-andrej

Have a nice DOS!
B >>


             reply	other threads:[~2000-04-20  9:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-20  9:35 Andrej Borsenkow [this message]
2000-04-20  9:37 ` Andrej Borsenkow
2000-04-20 11:00 Sven Wischnowsky
2000-04-20 12:03 ` Andrej Borsenkow
2000-04-20 12:14 Sven Wischnowsky

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

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

  git send-email \
    --in-reply-to='000301bfaaab$d5916b70$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=zsh-workers@sunsite.auc.dk \
    /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.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).