Loading ...
Sorry, an error occurred while loading the content.

[PATCH] Make feature lists shown by ":version" more readable

Expand Messages
  • Nazri Ramliy
    Hi, My eyes hurts everytime I had to hunt for a specific feature in the listing shown by :version. Attached patch formats the feature list shown by :version
    Message 1 of 6 , Feb 19, 2013
    • 0 Attachment
      Hi,

      My eyes hurts everytime I had to hunt for a specific feature in the
      listing shown by :version.

      Attached patch formats the feature list shown by :version into a more
      readable, columnar style. It's the same style used for listing a
      book's index - it's easier to scan as the items are sorted top to
      bottom in each column.

      Before patch:

      --8<--
      Huge version with GTK2 GUI. Features included (+) or not (-):
      +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent
      +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
      +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff
      +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
      +file_in_path +find_in_path +float +folding -footer +fork() +gettext
      -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall
      +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname
      +mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm
      +mouse_sgr -mouse_sysmouse +mouse_urxvt +mouse_xterm +multi_byte +multi_lang
      -mzscheme +netbeans_intg +path_extra -perl +persistent_undo +postscript
      +printer +profile +python -python3 +quickfix +reltime +rightleft -ruby
      +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop
      +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
      +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual
      +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
      +X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save
      system vimrc file: "$VIM/vimrc"
      -->8--

      After:

      --8<--
      Huge version with GTK2 GUI. Features included (+) or not (-):
      +arabic +file_in_path +mouse_sgr +tag_binary
      +autocmd +find_in_path -mouse_sysmouse +tag_old_static
      +balloon_eval +float +mouse_urxvt -tag_any_white
      +browse +folding +mouse_xterm -tcl
      ++builtin_terms -footer +multi_byte +terminfo
      +byte_offset +fork() +multi_lang +termresponse
      +cindent +gettext -mzscheme +textobjects
      +clientserver -hangul_input +netbeans_intg +title
      +clipboard +iconv +path_extra +toolbar
      +cmdline_compl +insert_expand -perl +user_commands
      +cmdline_hist +jumplist +persistent_undo +vertsplit
      +cmdline_info +keymap +postscript +virtualedit
      +comments +langmap +printer +visual
      +conceal +libcall +profile +visualextra
      +cryptv +linebreak +python +viminfo
      +cscope +lispindent -python3 +vreplace
      +cursorbind +listcmds +quickfix +wildignore
      +cursorshape +localmap +reltime +wildmenu
      +dialog_con_gui -lua +rightleft +windows
      +diff +menu -ruby +writebackup
      +digraphs +mksession +scrollbind +X11
      +dnd +modify_fname +signs -xfontset
      -ebcdic +mouse +smartindent +xim
      +emacs_tags +mouseshape -sniff +xsmp_interact
      +eval +mouse_dec +startuptime +xterm_clipboard
      +ex_extra -mouse_gpm +statusline -xterm_save
      +extra_search -mouse_jsbterm -sun_workshop
      +farsi +mouse_netterm +syntax
      system vimrc file: "$VIM/vimrc"
      -->8--

      I found it much easier to locate a specific feature using the new style.

      Try it! See how long it takes you to locate, say the 'libcall' feature
      in the two examples above.

      Careful, the new listing is so fine it might even make you want to go
      and do a :help +feature for each of the items :)

      Nazri

      --
      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php

      ---
      You received this message because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Bram Moolenaar
      ... Thanks, this defenitely looks better. It takes more space on screen, but that s not really a problem. The for loop is a bit strange. Instead of using
      Message 2 of 6 , Feb 20, 2013
      • 0 Attachment
        Nazri Ramliy wrote:

        > My eyes hurts everytime I had to hunt for a specific feature in the
        > listing shown by :version.
        >
        > Attached patch formats the feature list shown by :version into a more
        > readable, columnar style. It's the same style used for listing a
        > book's index - it's easier to scan as the items are sorted top to
        > bottom in each column.
        >
        > Before patch:
        >
        > --8<--
        > Huge version with GTK2 GUI. Features included (+) or not (-):
        > +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent
        > +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
        > +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff
        > +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
        > +file_in_path +find_in_path +float +folding -footer +fork() +gettext
        > -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall
        > +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname
        > +mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm
        > +mouse_sgr -mouse_sysmouse +mouse_urxvt +mouse_xterm +multi_byte +multi_lang
        > -mzscheme +netbeans_intg +path_extra -perl +persistent_undo +postscript
        > +printer +profile +python -python3 +quickfix +reltime +rightleft -ruby
        > +scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop
        > +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
        > +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual
        > +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
        > +X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save
        > system vimrc file: "$VIM/vimrc"
        > -->8--
        >
        > After:
        >
        > --8<--
        > Huge version with GTK2 GUI. Features included (+) or not (-):
        > +arabic +file_in_path +mouse_sgr +tag_binary
        > +autocmd +find_in_path -mouse_sysmouse +tag_old_static
        > +balloon_eval +float +mouse_urxvt -tag_any_white
        > +browse +folding +mouse_xterm -tcl
        > ++builtin_terms -footer +multi_byte +terminfo
        > +byte_offset +fork() +multi_lang +termresponse
        > +cindent +gettext -mzscheme +textobjects
        > +clientserver -hangul_input +netbeans_intg +title
        > +clipboard +iconv +path_extra +toolbar
        > +cmdline_compl +insert_expand -perl +user_commands
        > +cmdline_hist +jumplist +persistent_undo +vertsplit
        > +cmdline_info +keymap +postscript +virtualedit
        > +comments +langmap +printer +visual
        > +conceal +libcall +profile +visualextra
        > +cryptv +linebreak +python +viminfo
        > +cscope +lispindent -python3 +vreplace
        > +cursorbind +listcmds +quickfix +wildignore
        > +cursorshape +localmap +reltime +wildmenu
        > +dialog_con_gui -lua +rightleft +windows
        > +diff +menu -ruby +writebackup
        > +digraphs +mksession +scrollbind +X11
        > +dnd +modify_fname +signs -xfontset
        > -ebcdic +mouse +smartindent +xim
        > +emacs_tags +mouseshape -sniff +xsmp_interact
        > +eval +mouse_dec +startuptime +xterm_clipboard
        > +ex_extra -mouse_gpm +statusline -xterm_save
        > +extra_search -mouse_jsbterm -sun_workshop
        > +farsi +mouse_netterm +syntax
        > system vimrc file: "$VIM/vimrc"
        > -->8--
        >
        > I found it much easier to locate a specific feature using the new style.
        >
        > Try it! See how long it takes you to locate, say the 'libcall' feature
        > in the two examples above.
        >
        > Careful, the new listing is so fine it might even make you want to go
        > and do a :help +feature for each of the items :)

        Thanks, this defenitely looks better. It takes more space on screen,
        but that's not really a problem.

        The for loop is a bit strange. Instead of using sprintf() it's simpler
        to make a loop that outputs the filler spaces. And not do that for the
        last column. It can also be avoided to have to place to write the
        newline.

        --
        "The future's already arrived - it's just not evenly distributed yet."
        -- William Gibson

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ an exciting new programming language -- http://www.Zimbu.org ///
        \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

        --
        --
        You received this message from the "vim_dev" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php

        ---
        You received this message because you are subscribed to the Google Groups "vim_dev" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      • Ajit Thakkar
        ... Nice. Consider separating the list into two: features included and not included. Which list is most useful depends on the size of the builds you use. Ajit
        Message 3 of 6 , Feb 20, 2013
        • 0 Attachment
          On Wednesday, February 20, 2013 3:19:00 AM UTC-4, Nazri wrote:

          > My eyes hurts everytime I had to hunt for a specific feature in the
          > listing shown by :version.
          > Attached patch formats the feature list shown by :version into a more
          > readable, columnar style. It's the same style used for listing a

          Nice. Consider separating the list into two: features included and not included. Which list is most useful depends on the size of the builds you use.

          Ajit

          --
          --
          You received this message from the "vim_dev" maillist.
          Do not top-post! Type your reply below the text you are replying to.
          For more information, visit http://www.vim.org/maillist.php

          ---
          You received this message because you are subscribed to the Google Groups "vim_dev" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
          For more options, visit https://groups.google.com/groups/opt_out.
        • Nazri Ramliy
          ... You re right. Attached is the updated patch Nazri -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the
          Message 4 of 6 , Feb 20, 2013
          • 0 Attachment
            On Wed, Feb 20, 2013 at 7:34 PM, Bram Moolenaar <Bram@...> wrote:
            > Thanks, this defenitely looks better. It takes more space on screen,
            > but that's not really a problem.
            >
            > The for loop is a bit strange. Instead of using sprintf() it's simpler
            > to make a loop that outputs the filler spaces. And not do that for the
            > last column. It can also be avoided to have to place to write the
            > newline.

            You're right. Attached is the updated patch

            Nazri

            --
            --
            You received this message from the "vim_dev" maillist.
            Do not top-post! Type your reply below the text you are replying to.
            For more information, visit http://www.vim.org/maillist.php

            ---
            You received this message because you are subscribed to the Google Groups "vim_dev" group.
            To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
            For more options, visit https://groups.google.com/groups/opt_out.
          • tooth pik
            ... personally I d rather have them all in one list -- that way when you re looking for a particular feature there s only one list you have to check tp -- --
            Message 5 of 6 , Feb 20, 2013
            • 0 Attachment
              On Wed, Feb 20, 2013 at 04:20:23AM -0800, Ajit Thakkar wrote:
              > On Wednesday, February 20, 2013 3:19:00 AM UTC-4, Nazri wrote:

              > > My eyes hurts everytime I had to hunt for a specific feature in the
              > > listing shown by :version.
              > > Attached patch formats the feature list shown by :version into a more
              > > readable, columnar style. It's the same style used for listing a

              > Nice. Consider separating the list into two: features included and
              > not included. Which list is most useful depends on the size of the
              > builds you use.

              personally I'd rather have them all in one list -- that way when
              you're looking for a particular feature there's only one list you have
              to check

              tp

              --
              --
              You received this message from the "vim_dev" maillist.
              Do not top-post! Type your reply below the text you are replying to.
              For more information, visit http://www.vim.org/maillist.php

              ---
              You received this message because you are subscribed to the Google Groups "vim_dev" group.
              To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
              For more options, visit https://groups.google.com/groups/opt_out.
            • Bram Moolenaar
              ... Thanks. There are a few cases where the newline isn t put right. I ll fix it. -- BLACK KNIGHT: I m invincible! ARTHUR: You re a looney. Monty
              Message 6 of 6 , Feb 20, 2013
              • 0 Attachment
                Nazri Ramliy wrote:

                > On Wed, Feb 20, 2013 at 7:34 PM, Bram Moolenaar <Bram@...> wrote:
                > > Thanks, this defenitely looks better. It takes more space on screen,
                > > but that's not really a problem.
                > >
                > > The for loop is a bit strange. Instead of using sprintf() it's simpler
                > > to make a loop that outputs the filler spaces. And not do that for the
                > > last column. It can also be avoided to have to place to write the
                > > newline.
                >
                > You're right. Attached is the updated patch

                Thanks. There are a few cases where the newline isn't put right.
                I'll fix it.

                --
                BLACK KNIGHT: I'm invincible!
                ARTHUR: You're a looney.
                "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

                /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
                /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
                \\\ an exciting new programming language -- http://www.Zimbu.org ///
                \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

                --
                --
                You received this message from the "vim_dev" maillist.
                Do not top-post! Type your reply below the text you are replying to.
                For more information, visit http://www.vim.org/maillist.php

                ---
                You received this message because you are subscribed to the Google Groups "vim_dev" group.
                To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
                For more options, visit https://groups.google.com/groups/opt_out.
              Your message has been successfully submitted and would be delivered to recipients shortly.