Giter Club home page Giter Club logo

vital-luv's Introduction

vital-luv's People

Contributors

lumakernel avatar tsuyoshicho avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

isabella232

vital-luv's Issues

[記録] Vital.File.Tempfileみたいなのを作りたかったけどいらなかった

NOTICE : Only japanese. Sorry.

作ろうと思います.なにかこうであってほしいとか雑に書くと参考にするかもしれません.

ネームスペースは適当です,本家にマージされるようなことがあればその時考えればいいと思います.

追記 : とりあえずはいらなくなった... :h tempname()

参考

(とりあえずどれかの実装は見たほうがいいかな...)

考えている機能

  • 空ファイル作って filewritable() が確認できたものを返す
  • VimLeave でできる限り削除
  • 基本自分で消す (デストラクタがないのでGCのタイミングで消すとかできない)

インターフェース案

let s:Tempfile = vital#vital#import('File.Tempfile')
let tname = s:Tempfile.make()  " [prefix][乱数][suffix]  prefixはデフォで vital-tmpとかに
" call writefile([data], tname)
" jobで使うなど

" ===
" jobが終わった後など
" call s:Tempfile.release(s:tname)

let s:tmpdir = s:Tempfile.new('my-plugin')
" デバッグに便利,くらいなきがする
" 同名ファイルがあった場合は乱数suffixを足す
call s:tmpdir.make()

低カスタマイザブルでかんたんに使えるように

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.