Sadly that functionality does not currently exist but abusing the default-directory variable might work. Conceivably proced could be changed to call out to userland command kill (using an external command is supported) and, by combining it with TRAMP for sudo elevation it could kill processes owned by other users. Because of that all signals are sent using the uid of the Emacs process proced is running in. This is done using the Elisp function signal-process. Unsurprisingly sending POSIX signals is fully supported by Emacs. Sending Signals and Interacting with processes If you want to sort by a column not bound to a key you must use s S where you are then prompted for the name of a column to sort by. All the sort commands are bound to M-x proced-sort-xxx and to the prefix menu s: Command The command t will invert your marks and C and P will mark the children or parents of the process point is on.įinally you can sort by columns as well. There are some specialty mark commands as well. And finally you can then filter the marked processes with o. You can mark and unmark all processes with M and U. Like dired you can mark processes with both d and m (they do the same thing) and unmark with backspace and u. Refreshing the buffer with g does not reset it: you must change your filter with f. It will incrementally filter so you can repeatedly filter as much as you like – this is a very handy feature. Furthermore you can filter by any of the visible columns by moving your point to it and pressing RET. Like the formatting key above you are given a list of common filter types. You can also change the filtering – which defaults to all – by pressing f. You’ll be shown a prompt where you can select from short, medium, long and verbose. Marking, Sorting, Filtering and Formatting Columnsīy default you will be given the short formatting but you can change the number of displayed columns by typing F. It is also, in true Emacs tradition, very customizable – but I’ll get to that a bit later. So if you’re keeping your eye on a handful of processes you can use highlight-phrase to highlight the strings you want to visually separate from the rest. What I like about it is that it’s a buffer like any other in Emacs. It’s also feature rich by combining the utility of ps with the sortable, columnized and interactive system of top you get the best of both worlds. The command is M-x proced and it is modelled on M-x dired (but it is not built on top of dired) and it does shadow most of the common navigational aids: n and p move down and up and g refreshes the buffer, for instance. If you’re a regular user of the commandline tools top or ps then I have good news for you: there’s an Emacs command that does that and it works on Windows too!
0 Comments
Leave a Reply. |