Giter VIP home page Giter VIP logo

hm_splitpath's Introduction

hm_splitpath

GitHub release License: MIT Maintenance Coverity Scan Build Status

はじめに

これは、ファイルパスを4要素(※)に分解する秀丸エディタの変換モジュールです。

(※)4要素

  • ドライブ名
  • ディレクトリ名
  • ファイル名
  • 拡張子名

動作イメージ

C,Dドライブ混在のファイルリストをドライブ名でソートする例です。

sample

TSVモード(タブ区切り)について

カラム毎にソートするため、事前に秀丸エディタをTSVモード(タブ区切り)へ変更しています。

sample

動作詳細

ファイルパス分解拡張はファイルパスの要素毎にタブ文字(\t)区切りへ変換します。

プログラマ向け補足

内部処理では、Microsoft提供の_wsplitpath_s関数を呼び出しています。

導入方法

ご自分の環境に合わせて秀丸エディタのフィルターフォルダへコピーしてください。

環境 拡張のファイル名
64bit版 hm_splitpath.hmf64
32bit版 hm_splitpath.hmf

setting

動作確認した環境

  • Windows10 64bit
  • 秀丸エディタ 64bit 8.92 β16
  • 秀丸エディタ 32bit 8.91

ビルド方法

この拡張をソースコードからビルドする手順はREADME.mdを参照してください。

パフォーマンス

293万行(900MB)のファイルリストを1秒弱で処理します。
シングルスレッド&愚直アルゴリズムで実装しています。そのため、改善の余地は大いにありますが気が向かないため優先度は低いです😷

計測に利用したCPU

Intel Core [email protected]

連絡先

hm_splitpath's People

Contributors

ohtorii avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.