7 Commits

Author SHA1 Message Date
Ingo Karkat dcb9bcadc4 ingo#buffer#{scratch,generate}#Create(): ENH: Support "pedit" as a:windowOpenCommand 2022-06-20 22:22:44 +02:00
Ingo Karkat fdf1af342b generate: Cosmetics: Simplify dependencies, fix whitespace 2022-06-20 22:18:16 +02:00
Ingo Karkat 77615dcddf Documentation: Suggest using :bwipe instead of :close 2019-07-24 15:01:00 +02:00
Ingo Karkat 92112e713a ENH: Also support Funcref a:contentsCommand / a:scratchCommand for ingo#buffer#generate#Create() and ingo#buffer#scratch#Create\[WithWriter]() 2019-07-24 11:01:00 +02:00
Ingo Karkat 6f07b8147b Refactoring: Use ingo#change#Set() for updating last changed area 2019-04-02 12:01:13 +02:00
Ingo Karkat 0cba2f4395 Complete separation of buffer#generate from buffer#scratch
Failing tests (WriteBackup/writebackupVewDiffDaysChanges001.vim) alerted me that the implementation is stil incomplete.
ingo#buffer#generate#Create() needs to take an additional a:NextFilenameFuncref argument instead of invoking non-existent ingo#buffer#generate#NextFilename().
ingo#buffer#scratch#NextFilename() needs to invoke ingo#buffer#generate#NextBracketedFilename(), not the eponymous function in its own module.
2017-10-09 11:20:43 +02:00
Ingo Karkat f43f89e093 Split off generic ingo#buffer#generate#Create() from ingo/buffer/scratch.vim
This allows reuse for non-scratch buffer creation; i.e. where the buftype / readonly stuff isn't needed. Also, the code is easier to understand now that the two concepts are separated.
2017-09-10 12:02:20 +02:00