Vim Outliner 0.3.4 Beta

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Vim Outliner 0.3.4 Beta

Noel Henson
Everyone,

Here is the beta version of 0.3.4:
www.vimoutliner.org/files/vimoutliner-0.3.4-beta.tar.gz
www.vimoutliner.org/files/vimoutliner-0.3.4-beta.zip


Here is a summary of the changes from 0.3.3:

[X] ,,cz does not make the correct call
[X] ,,cb and ,,c0% does not update percentages in rest of list
[X] Extract INSTALL and VERSION from vo_readme.txt
        [X] INSTALL
        [X] VERSION
[X] Black text does not show in aterm (on black background)
        Debian Bug: 294588
        Severity: important
        Fix
                : This is not a bug. The console is telling Vim that it has
                : a light background. This happens automatically. I have
                : found, on my systems, that Vim thinks the background is dark
                : only when loaded from a text (VGA) console. When started
                : from within and X terminal (xterm, eterm, Konsole, etc.),
                : Vim thinks the background is light. So, in David's case, VO  
                : is using the wrong colors because it Vim thinks is has
                : a different background.
                :
                : To make this an easy thing to change for novices, I have
                : added VO color scheme files. A user can easily uncomment
                : 1 line in their .vimoutlinerrc file to force the color
                : scheme to be whatever they want. I am providing two schemes:
                : light and dark, vo_light.vim and vo_dark.vim, respectively.  
                : These schemes reflect the defaults in syntax/vo_base.vim.  
                : Users can even create their own schemes and select them with
                : their .vimoutlinerrc file.
[X] o2l2html doesn't work without a stylesheet
        Debian Bug: #297313
        Severity: important
        Fix
                : otl2html.py will now default to using an external
                : stylesheet: nnnnnn.css. If this css file does not exist, it
                : is created. Now even this simple command will work
                : correctly, provided that the user has write permissions in
                : the directory in which otl2html.py is run: otl2html.py
                : test.otl > test.html.
                :
                : Fixed-up the help command a bit.
[X] Update vo_readme.txt to include new features
[X] modify filetype method now used in Vim
[X] added ,,cp (same as ,,c%)
[X] Fixed ,,cb and ,,c100% (,,cp) to prevent adding checkboxes to:
        [X] body text
        [X] preformatted body text
        [X] tables
        [X] user-defined text
        [X] user-defined preformatted text
[X] Fixed ,,cx to modify only the first ' [0-9]*0%' it comes across
[X] Removed darkyellow from the colors, changed to darkred
[X] Added help info on
        [X] body text
        [X] preformatted body text
        [X] tables
        [X] user-defined text
        [X] user-defined preformatted text

Please let me know where things need to be polished-up so I can release it
to the world.

Have fun!

Noel

--

------------------------------------------------------------------
  Noel Henson
  www.noels-lab.com Chips, firmware and embedded systems
  www.vimoutliner.org Work fast. Think well.

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Vim Outliner 0.3.4 Beta

Steve Litt
On Tuesday 07 June 2005 02:20 pm, Noel Henson wrote:
> Everyone,
>
> Here is the beta version of 0.3.4:
> www.vimoutliner.org/files/vimoutliner-0.3.4-beta.tar.gz
> www.vimoutliner.org/files/vimoutliner-0.3.4-beta.zip


Ugh! I ran ./install.sh, and every single VO feature except level coloring
busted. No ,,0, no zc, no inter outline linking, no executable lines.

Let me get some more information...

SteveT
_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Vim Outliner 0.3.4 Beta

Steve Litt
On Tuesday 07 June 2005 03:17 pm, Steve Litt wrote:

> On Tuesday 07 June 2005 02:20 pm, Noel Henson wrote:
> > Everyone,
> >
> > Here is the beta version of 0.3.4:
> > www.vimoutliner.org/files/vimoutliner-0.3.4-beta.tar.gz
> > www.vimoutliner.org/files/vimoutliner-0.3.4-beta.zip
>
> Ugh! I ran ./install.sh, and every single VO feature except level coloring
> busted. No ,,0, no zc, no inter outline linking, no executable lines.
>
> Let me get some more information...
>
> SteveT


OK, here's some more information. If I manually do this:

:source ~/.vim/ftplugin/vo_base.vim

most of the problems go away. ,,0, zc, inter outline linking, and executable
lines all work. However, the Ctrl+N method of returning from an interoutline
link does not work, although its Ctrl+T Vim original keystroke does.

So I have 2 questions:

1) What makes VO run ~/.vim/ftplugin/vo_base.vim on each file?
2) Did you accidentally remove the Ctrl+N abbreviation for Ctrl+T (return from
tag)?

Thanks

SteveT
_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Vim Outliner 0.3.4 Beta

Noel Henson
In reply to this post by Steve Litt
On Tuesday 07 June 2005 12:17 pm, Steve Litt wrote:
>
> Ugh! I ran ./install.sh, and every single VO feature except level
> coloring busted. No ,,0, no zc, no inter outline linking, no executable
> lines.
>
> Let me get some more information...
>
> SteveT

It was probably your ~/.vimoutlinerrc that got whacked. To help me diagnose
the problem, please re-instantiate you own ~/.vimoutlinerrc file. It's
still there. It was just renamed.

Noel

--

------------------------------------------------------------------
  Noel Henson
  www.noels-lab.com Chips, firmware and embedded systems
  www.vimoutliner.org Work fast. Think well.

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Vim Outliner 0.3.4 Beta

Noel Henson
In reply to this post by Steve Litt
On Tuesday 07 June 2005 12:23 pm, Steve Litt wrote:

> OK, here's some more information. If I manually do this:
> :source ~/.vim/ftplugin/vo_base.vim
>
> most of the problems go away. ,,0, zc, inter outline linking, and
> executable lines all work. However, the Ctrl+N method of returning from
> an interoutline link does not work, although its Ctrl+T Vim original
> keystroke does.
>
> So I have 2 questions:
>
> 1) What makes VO run ~/.vim/ftplugin/vo_base.vim on each file?

The filetype plugin script: ~/.vim/filetype.vim

> 2) Did you accidentally remove the Ctrl+N abbreviation for Ctrl+T
> (return from tag)?

Umm. No. Was that in your own ~/.vimoutlinerrc?

Noel

--

------------------------------------------------------------------
  Noel Henson
  www.noels-lab.com Chips, firmware and embedded systems
  www.vimoutliner.org Work fast. Think well.

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Vim Outliner 0.3.4 Beta

Matej Cepl
In reply to this post by Noel Henson
Noel Henson wrote:
> Here is the beta version of 0.3.4:
> www.vimoutliner.org/files/vimoutliner-0.3.4-beta.tar.gz
> www.vimoutliner.org/files/vimoutliner-0.3.4-beta.zip
> [...]
> Please let me know where things need to be polished-up so I can release it
> to the world.

Actually, I think I have finally got it! Why the hell we need that whole 'if
exists("did_load_filetypes")' construct at all in ftdetect/vo_base? Who
cares whether setfiletype runs more than once? And because
did_load_filetypes is created in /usr/share/vim/vim6*/filetype.vim, it
breaks our beautiful ftdetect system, because then vo_base.vim
in /usr/share/vim/addons/ftdetect is finished prematurely.

So:

--- vo_base.vim.orig        2005-06-07 13:56:07.000000000 -0400
+++ vo_base.vim        2005-06-07 23:15:04.000000000 -0400
@@ -74,9 +74,7 @@
 "Revision 1.1  2003/02/08 21:11:26  noel
 "Initial revision
 "
-if exists("did_load_filetypes")
-  finish
-endif
+
 augroup filetypedetect
   au! BufRead,BufNewFile *.otl                setfiletype vo_base
   au! BufRead,BufNewFile *.oln                setfiletype xoutliner

BTW, I have testing version of the Debian package (with ftdetect/vo_base.vim
fixed, of course) on <http://www.ceplovi.cz/matej/tmp/> -- please, test and
comment.

Best,

        Matej

--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
Poor Faulkner. Does he really think big emotions come from big
words?
      -- Ernest Hemingway
         (about William Faulkner)

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Re: Vim Outliner 0.3.4 Beta

Noel Henson
On Tuesday 07 June 2005 08:28 pm, Matej Cepl wrote:
> Actually, I think I have finally got it! Why the hell we need that whole
> 'if exists("did_load_filetypes")' construct at all in ftdetect/vo_base?
> Who cares whether setfiletype runs more than once? And because
> did_load_filetypes is created in /usr/share/vim/vim6*/filetype.vim, it
> breaks our beautiful ftdetect system, because then vo_base.vim
> in /usr/share/vim/addons/ftdetect is finished prematurely.

I'm testing this now. Initially it seems to work. Going over my old notes,
I see that we needed it because functions and key mappings were being
reloaded every time a file was switched. This happens when following a link
or with :e (and I'm sure other situations). Depending upon how your
personal vim was set up, you could get a bunch of error messages you had to
acknowledge every time you switched files.

But as your testing has shown, perhaps that code has become an appendix,
biologically speaking of course.

>
> So:
>
> --- vo_base.vim.orig        2005-06-07 13:56:07.000000000 -0400
> +++ vo_base.vim        2005-06-07 23:15:04.000000000 -0400
> @@ -74,9 +74,7 @@
>  "Revision 1.1  2003/02/08 21:11:26  noel
>  "Initial revision
>  "
> -if exists("did_load_filetypes")
> -  finish
> -endif
> +
>  augroup filetypedetect
>    au! BufRead,BufNewFile *.otl                setfiletype vo_base
>    au! BufRead,BufNewFile *.oln                setfiletype xoutliner
>
> BTW, I have testing version of the Debian package (with
> ftdetect/vo_base.vim fixed, of course) on
> <http://www.ceplovi.cz/matej/tmp/> -- please, test and comment.
>

I'll give it a shot once I'm finished with my current list of issues.

BTW, could you help me out? Could you review the help section on VO
objects? (:he vo-objects) I want to make it clear. Some newbies have sent
me personal email on just trying to understand how to make body text.

Thanks,

Noel


--

------------------------------------------------------------------
  Noel Henson
  www.noels-lab.com Chips, firmware and embedded systems
  www.vimoutliner.org Work fast. Think well.

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Re: Vim Outliner 0.3.4 Beta

Matej Cepl
Noel Henson wrote:
> I'm testing this now. Initially it seems to work. Going over my old notes,
> I see that we needed it because functions and key mappings were being
> reloaded every time a file was switched.

This is true for ftplugin/vo_base.vim, but really who cares how many times
ftdetect/vo_base.vim is run -- remember, it really doesn't do anything,
just adds one autocommand, which doesn't do anything in itself either, it
just creates a binding between .otl extension and vo_base filetype?

> BTW, could you help me out? Could you review the help section on VO
> objects? (:he vo-objects) I want to make it clear. Some newbies have sent
> me personal email on just trying to understand how to make body text.

It seems to me pretty clear (wov! I didn't know about these! Kewl!!!), but I
am probably too much immersed in VO to be good testing object. Somebody
more acquainted with newbie-proofing of texts (Steve, are you there???)
could do better job, IMHO.

However, I have some more notes on the help as whole:

*vo-testing* -- could you please add to my hopeless Debian-package users
note, that there is no syntax coloring without 'syntax on'?
*vo-other-files* -- of course, you can also use modeline; see attached
TODO.Debian (from VO Debian package), which works as a VO document, even
without any extension whatsoever.

How is delayed loading of VO plugins doing?

        Best,

                Matej

--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
Only two of my personalities are schizophrenic, but one of them
is paranoid and the other one is out to get him.


_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Re: Vim Outliner 0.3.4 Beta

Matej Cepl
In reply to this post by Noel Henson
Noel Henson wrote:
> BTW, could you help me out? Could you review the help section on VO
> objects? (:he vo-objects) I want to make it clear. Some newbies have sent
> me personal email on just trying to understand how to make body text.

Sorry, forgot to attach an example.

Matej

--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
A modest little person, with much to be modest about.
      -- Winston Churchill

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner

TODO (366 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Delayed loading of plugins [Was: Re: Vim Outliner 0.3.4 Beta]

Matej Cepl
In reply to this post by Matej Cepl
Matej Cepl wrote:
> How is delayed loading of VO plugins doing?

And I will answer myself -- see attached. What do you think?

Matej

--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
Science is meaningless because it gives no answer to our
question, the only question important to us: ``What shall we do
and how shall we live?''
    -- Lev Nikolaevich Tolstoy

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner

vo_delayed_loading.tar.bz2 (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Vim Outliner 0.3.4 Beta

Matej Cepl
In reply to this post by Noel Henson
Noel Henson wrote:
> Here is the beta version of 0.3.4:
> www.vimoutliner.org/files/vimoutliner-0.3.4-beta.tar.gz
> www.vimoutliner.org/files/vimoutliner-0.3.4-beta.zip

I am not sure, where on the list changes it is, but I do not like that
SafelyInsertCheckBoxPercent() does not add percented checkbox when there are
no children. I have this part of outline

[_] 25% Sale of stuff
        [_] 25% computers
                [_] 25% blahoslav
                        [X] will Steve let us to sell it?
                        [_] should I install Windows or let it go w/ old Linux?
                        ...

Now I want to add as a first item in the sublist (i.e., before "computers")
new item, "cello". It is a huge undertaking to sell cello, so I am quite
sure, that there will be many subtasks for it, but I am not sure which
ones. Then SafelyInsertCheckBoxPercent() not including percent character
seems to be broken (it feels to much like M$ programs explaining me what I
really want to do -- "you actually do not want percent character").

Best,

        Matej

--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
He loves nature in spite of what it did to him.
      -- Forrest Tucker


_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Re: Vim Outliner 0.3.4 Beta

Noel Henson
On Thursday 09 June 2005 10:15 am, Matej Cepl wrote:

> I am not sure, where on the list changes it is, but I do not like that
> SafelyInsertCheckBoxPercent() does not add percented checkbox when there
> are no children. I have this part of outline
>
> [_] 25% Sale of stuff
>         [_] 25% computers
>                 [_] 25% blahoslav
>                         [X] will Steve let us to sell it?
>                         [_] should I install Windows or let it go w/ old
> Linux? ...
>
> Now I want to add as a first item in the sublist (i.e., before
> "computers") new item, "cello". It is a huge undertaking to sell cello,
> so I am quite sure, that there will be many subtasks for it, but I am
> not sure which ones. Then SafelyInsertCheckBoxPercent() not including
> percent character seems to be broken (it feels to much like M$ programs
> explaining me what I really want to do -- "you actually do not want
> percent character").

Yes. SafelyInsertCheckBoxPercent() does not include a % when there are no
children. This is done by design. I, personally, don't want percentages
added when there are no children to compute the percentage of completion.  
A childless heading is either done or not.

Adding the feature so you can have the % added when there are no children
is not as simple as one might think. Add it and see. You will always see
0%. This is because the value is computed from the children, not the
heading. The routines that compute completion would need to be modified to
check for [_] and [X] in a heading if there are no children. I'm not sure
how involved processing modification might be.

I think a better method might be to try:

 [_] 25% Sale of stuff
         [_] 25% computers
                [_] 25% blahoslav
                         [X] will Steve let us to sell it?
                         [_] should I install Windows or let it go w/ old
         [_] 0% cello
                [_] ???

This will give you the behavior you require AND it will let you know that
you need to flesh-out that large action item.

Noel

--

------------------------------------------------------------------
  Noel Henson
  www.noels-lab.com Chips, firmware and embedded systems
  www.vimoutliner.org Work fast. Think well.

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Re: Vim Outliner 0.3.4 Beta

Steve Litt
On Thursday 09 June 2005 01:42 pm, Noel Henson wrote:

> On Thursday 09 June 2005 10:15 am, Matej Cepl wrote:
> > I am not sure, where on the list changes it is, but I do not like that
> > SafelyInsertCheckBoxPercent() does not add percented checkbox when there
> > are no children. I have this part of outline
> >
> > [_] 25% Sale of stuff
> >         [_] 25% computers
> >                 [_] 25% blahoslav
> >                         [X] will Steve let us to sell it?
> >                         [_] should I install Windows or let it go w/ old
> > Linux? ...
> >
> > Now I want to add as a first item in the sublist (i.e., before
> > "computers") new item, "cello". It is a huge undertaking to sell cello,
> > so I am quite sure, that there will be many subtasks for it, but I am
> > not sure which ones. Then SafelyInsertCheckBoxPercent() not including
> > percent character seems to be broken (it feels to much like M$ programs
> > explaining me what I really want to do -- "you actually do not want
> > percent character").
>
> Yes. SafelyInsertCheckBoxPercent() does not include a % when there are no
> children. This is done by design. I, personally, don't want percentages
> added when there are no children to compute the percentage of completion.
> A childless heading is either done or not.
>
> Adding the feature so you can have the % added when there are no children
> is not as simple as one might think. Add it and see. You will always see
> 0%. This is because the value is computed from the children, not the
> heading. The routines that compute completion would need to be modified to
> check for [_] and [X] in a heading if there are no children. I'm not sure
> how involved processing modification might be.
>
> I think a better method might be to try:
>
>  [_] 25% Sale of stuff
> [_] 25% computers
> [_] 25% blahoslav
> [X] will Steve let us to sell it?
> [_] should I install Windows or let it go w/ old
> [_] 0% cello
> [_] ???
>
> This will give you the behavior you require AND it will let you know that
> you need to flesh-out that large action item.
>
> Noel

Hi Noel,

If I lived in an ideal checklist world, I'd want all non-body-text headlines
to have both [_] and %, and I'd like that when you check a childless item,
its percent changes from 0 to 100. However, with child bearing items I'd like
the behavior to remain exactly how it is now -- I've gotten used to the fact
that checking a parent doesn't work and doesn't strongarm the children -- I
see the current behavior as a safety enhancement.

It's not that important to me whether the percent sign change to 100 or remain
at 0 when a childless item is checked, but I do agree with Matej that in an
ideal world, requesting a percent sign would work on childed and childless
nodes alike, because, like Matej, I might add children at any time, but I
don't want to anticipate it with [_]???.

Also, did we ever get an easier keystroke than ,,c%?

Thanks

SteveT

Steve Litt
Founder and acting president: GoLUG
http://www.golug.org
_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Re: Vim Outliner 0.3.4 Beta

Noel Henson
In reply to this post by Noel Henson
On Thursday 09 June 2005 11:42 am, you wrote:
>
> Bless your heart! Is there any way to make ,,cp insert just a percent
> sign if there already exists a [_]? Right now, if there exists a [_],
> ,,cp does nothing.

Sure. However you guys want it.

Noel

--

------------------------------------------------------------------
  Noel Henson
  www.noels-lab.com Chips, firmware and embedded systems
  www.vimoutliner.org Work fast. Think well.

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Re: Vim Outliner 0.3.4 Beta

Matej Cepl
In reply to this post by Steve Litt
Steve Litt wrote:
> Also, did we ever get an easier keystroke than ,,c%?

Yes, ,,cp

Matej

--
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
MSDOS didn't get as bad as it is overnight -- it took over ten years
of careful development.
        -- [hidden email]


_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner