codespell icon indicating copy to clipboard operation
codespell copied to clipboard

Windows Support

Open abhisheksoni27 opened this issue 8 years ago • 4 comments
trafficstars

A good starting point: tasklist https://technet.microsoft.com/en-us/library/bb491010.aspx

abhisheksoni27 avatar Jul 21 '17 12:07 abhisheksoni27

I've created a node module process-tree that works cross-platform. The documentation consists of just a code example, but it should be simple to use. It uses wmic on Windows.

1j01 avatar Aug 28 '17 04:08 1j01

@1j01 Thank you for that awesome module, Sir.

Would you like to contribute to codespell?

abhisheksoni27 avatar Aug 28 '17 16:08 abhisheksoni27

I haven't used the tool, and I'm probably not gonna get any benefit from it unless it can track the active window. I've mainly been using Cloud9 IDE recently, and I generally leave editors open, so an editor being open isn't gonna be a very useful statistic, unless I change that and get in a habit of closing things.

I've realized process-tree would need to be able to return all the processes to be helpful here, not just one that matches a pid, which is something I'd planned but not implemented; and it should be fairly trivial, but the whole module is fairly trivial, and we don't need to list child processes in a tree, so it might make more sense to port over some of the code into this project, rewriting it in JS. (Which I have started doing.)

1j01 avatar Aug 30 '17 03:08 1j01

Exactly. We don't need the tree structure. I guess it'd be easier and quicker if we could port the idea behind process-tree to this project, as you said.

abhisheksoni27 avatar Aug 30 '17 14:08 abhisheksoni27