On Tue, Aug 18, 2009 at 10:54 PM, Gary Johnson<garyjohn@...
> On 2009-08-18, Hari Krishna Dara wrote:
>> On Tue, Aug 18, 2009 at 2:01 PM, Gary Johnson<garyjohn@...> wrote:
>> > I'm not having any of the problems I had before with paths or names,
>> > but I am having problems with naming the note file myself.
>> > According to the script page,
>> > Starting to take a new note should be as simple as typing :Note.
>> > Enter your text and save to generate a name automatically based
>> > on the first line. You can also start typing in an unnamed
>> > buffer (created using <Ctrl-W>n) and later convert it as a note
>> > using :NoteAsNew command (again named automatically based on the
>> > first line).
>> > I thought these worked before (in version 1.8), but neither seems to
>> > work now. I have these set in my ~/.vimrc:
>> > let g:notesRoot = "~/Notes"
>> > let g:notesWordSeparator = ""
>> > Starting with an empty ~/Notes directory, I open some file in my
>> > home directory, then execute ":Note". A new buffer appears in a
>> > split window with the name "~/Notes/NewNote.txt". I enter the
>> > following lines in the buffer:
>> > hello
>> > This is a note about "hello".
>> > with the expectation that the buffer will be saved as "hello.txt".
>> > The ":NoteAsNew" command reports, "This command works only on
>> > unnamed buffers", and simply writing the buffer with ":w" updates
>> > the existing ~/Notes/NewNote.txt file with the new text.
>> > Similarly, opening a new buffer with the ":new" command, entering
>> > the same text, and executing the ":NoteAsNew" command creates a new
>> > file with the name "~/Notes/NewNote1.txt". Again, no use of the
>> > first line in the file name.
>> > :echo g:notesSyncNameAndTitle
>> > displays "1".
>> Ooops.. I forgot to test after a last minute change and that broke the
>> logic to determine the filename. I uploaded a new version with a fix.
>> Thanks a lot for reporting the issue.
> You're welcome. That aspect seems to work fine now. Thanks for
> fixing it so quickly.
>> > Also, I would still rather that Notes deferred creating the notes
>> > file until I write it, so that I can abandon a new note without
>> > having to remember to rm or :NoteRemove it.
>> My original idea behind this was to reserve the name in the file
>> system such that multiple instances of notes (via multiple instances
>> of Vim) can run in parallel and the logic to allow creation of
>> multiple new notes (with in the same Vim instance) is simpler. It
>> could probably have been an option from the start with the implied
>> perils when disabled. I will take a note of this and look into it when
>> I have some more time next week. Hopefully, it will not be too
>> bothersome meanwhile.
> Fair enough. I'll start using it for taking real notes and see how
> that goes.
In case you missed my original post describing my intention to create
this, I wanted this to replace a small external note taker called
. I have implemented
enough functionality to cover what I was really using in that program.
I don't really plan to make this a complicated and full featured note
taker. Please keep this in mind when you suggest new features or
improvements, as I don't have a whole lot of time to spend (however,
patches are welcome).
> I like your error messages. I can tell immediately what I've done
Thank you. I do put extra effort in making my software supportable.
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php