The Command-Line Office
ebeab.com
ebeab.com
I've made a few tiny hacks to make it work better for me: - add a default length to the generate command - allow abbreviating 'generate' as 'gen' - default to copying to clipboard instead of stdout - use xsel instead of xclip (no real reason except I already had it installed everywhere)
THANK YOU! I love your tool and it is one of my favorite tools. I check your git for other cool stuff as I stumbled upon your stuff many times.
Question: would you want to add a parameter to escape non-aplhanumeric characters? It took me a while of playing to figure out how to get mutt to handle my very complex IMAP passwords.
For anyone who cares, I do it with sed.
set my_pass=`pass email/this@email.org | sed 's/[[:punct:]]/\\&/g'`
#
set my_pass="`pass email/this@email.org`"
[edit]
Looks like this is a muttrc line not a sh line. Sadly I don't think muttrc supports the far superior $() expansion..Ah! I installed pass a few days ago! I was wondering why you decided to use gpg to encrypt instead of mcrypt (which would be "easier" to set up for the casual end-user since he'd only need a password and not a keys) ?
I also wished you could post your cgit.conf because I remember having troubles achieving something with mine but now I can't remember what. Well.
Also, are you involved with http://git.zx2c4.com/pulseaudio-raop2/ ? If so: any chances of progress being made in the near future ?
pass is pretty much the ONLY password manager I have actually found useful, and I have tried a LOT of them. I wrote about it here:
https://news.ycombinator.com/item?id=7175888
Also, I have a personal use "fork" (scare quotes cause its not really a fork, just an personal work-in-progress) on github:
https://github.com/abgoyal/password-store2
Its an attempt to fix the "leak" of sitenames/usernames I talked about in the HN thread linked above. I am sorry, I have not gotten around to fixing the READMEs etc yet. Is this something you would be interested in merging?
In any case, big thanks for making "pass". Its a pleasure to use.
Any thoughts of cross platform compatibility for the future? I find one of the best features of KeePass is the fact that it can be used on all my computers (even the ones not running Linux).
You might be able to get close if you are using them to edit Markdown and running it through Pandoc (especially if you add in a non-commandline PDF viewer). But still.
WordPerfect 5.1 - now that was a curses/command line word processor :) I don't know of a modern equivalent though.
Do you feel better if section headings are bigger and take up more space than the text you are supposed to be working on:
latex: https://i.stack.imgur.com/etFst.png
org-mode: http://blog.nozav.org/public/images/tangotango_org.png
org-mode with pd preview: http://i1.ytimg.com/vi/lsYdK0C2RvQ/maxresdefault.jpg
Or is emacs excluded from being a word processor because you can also use it for powerpoint presentations: http://salomie.ro/tudor/wp-content/uploads/2010/10/orgmode_p...
But this is a pretty common distinction, surely?
Words are text, but word processors have historically been focused on preparing documents for printing (or nowdays viewing a visual representation of a printed document onscreen, eg PDF).
They handle differing visual layout (fonts, page breaks, margins, indenting). They are softwrapped and paragraph based not line based. Often they deal with formatting through styles - headers, bullet points, numbering. They usually handle inclusion of tables, images and other non-text elements.
The most common example of a word processor, Word, also handles collaborative writing with tracked changes and notes, and has inbuilt features such as on the fly word count, spelling and grammar checks.
As I said, for a command line word processor look at WordPerfect for DOS or equivalent.
What you are saying (and it is not entirely wrong) is that you can approximate a word processor by matching a text editor with a bunch of other programs (TeX, Pandoc, aspell etc). But that doesn't make the text editor a word processor.
Have you used emacs in the past decade? Some of your requirements are laughable. Softwrapping? visual-line-mode has been baked in since 23. Word count? wordcountmode. Tables? I will take orgtbl mode over the libreoffice/ms-word interface any day. Bullet points? Nothing comes close to orgmode for manipulating/moving/adding bullet points.
Apple's Pages did not get "track changes" until 2012. Was it just a text editor prior to that?
Sidebar: It is kind of funny that you like WP 5.1 and are a lawyer. Were you ever a lawyer in the states? The only people I have ever heard gush over WP5.1 were lawyers. I never realized the fetish was global.
Sure, I can do emacs with softwrapping to write my next legal contract. I can also do text editing in Word for my next LaTex document. But I wouldn't want to.
This is not an obscure distinction to make.
Sidebar: Actually I much prefer a recent Word to WordPerfect 5.1. But the question was command line tools, and WordPerfect 5.1 is a good example of a terminal based document creation tool focused on creating, well, documents. It should be easily possible to make a modern equivalent - a terminal based editor focused narrowly on the creation of the same sorts of documents Word is good at. But I don't know of one, and a tricked out emacs doesn't really get there.
The other thing that made WordPerfect great was their technical support. Free and unlimited over the phone...and they new what they were talking about and if it was a genuine bug, they would have an engineer call you back on their dime. Or at least that's what happened when I found a bug in Summer of 1992.
Microsoft Word buries its formatting. Sometimes it's easier to just nuke a file to text and reformat the whole thing than to try to solve conflicting formats overlapping.
It seems like nobody I work with even knows what styles are.
I actually found the other day I have a ROM for Wordwise+, the first word processor I ever used, for the BBC Micro. I might see if I can get away with doing some "real work" in it :-) http://en.wikipedia.org/wiki/Wordwise
Most serious document production company (publishing companies and newspapers; legal firms are probably less sophisticated) have a similar pipeline within their firm. Text (raw or rigidly styled), version-controlled, running through a pipeline of reviews and signoffs and markup and arrangement.
> I don't know of a modern equivalent
I don't think monolithic word processors will be a feature of the future. The mainstream tool will be some kind of style editor. Maybe it'll incorporate a spellcheck and some other monolithic features. There'll be a pipeline underneath - to send things to paper or web or archive or accounts.We'll think much more in terms of snippets of styled data, and its lifecycle. We'll laugh at memories of these laborious monolithic word processing systems, and how we thought that this was productivity.
LyX is already (mostly) there: http://lyx.org While it's mostly LaTeX based, I could easily see it using any number of backends (another feature of pipelining underneath), such as markdown, roff, etc.
Should be interesting to mess around with.
Not an office app, but I think tmux is probably my favorite all around need-to-have, for when I'm working cli only.
edit: this also makes me think it wouldn't be too hard to write an excel as a service layer on a normal windows machine, then use the cli comp to interface with it. You wouldn't get the fancy formatting, but you could pretty easily get the calculations and such, as well as some basic formatting. Also not tough to make it save itself and send it out via outlook or whatever you want. Without all the nutty formatting, the data transmission could be pretty light weight. Wonder if anyone's done that. Might screw around with it if I have spare time
I have other computers I use a lot, and I'd never 100% give up on gui's. Mostly I'd be setting up an environment that boots quickly, reduces background processes, and gives me a nice retro place to code in when I'm tooling with haskell or c. I also like having an environment that I've fully optimized for keyboard only.
The excel part would just be an interesting convergence of what I do at work with windows, and what I use mostly at home.
I've never messed with frame buffers in terminal; that'd be really interesting. Maybe I'll see if I can get to something more fully functional after all. I've always gone pretty much easy-mode when it comes to linux. I want to get more hands-on with the distro
In case you haven't seen it: ViEmu is a great addon for Visual Studio.
Haven't used it, but it allows the creation of pretty complex spreadsheets from ruby code. Not sure if it is able to read from spreadsheets, but it could be one part of the service layer.
I have aliases defined to reach these subdirectories because I am lazy:
# calcurse stuff
export Week='-D .calcurse/Weekly'
export Month='-D .calcurse/Monthly'
export Quarter='-D .calcurse/Quarterly'
export Year='-D .calcurse/Yearly'
I use tmux and a startup script to open daily, weekly, and monthly #!/bin/bash
# Start a session named cal, name the window "Day",
# pane. Detach the session for the setup process.
tmux new -s cal -n Day -d
# Create second window named "Week", split it and select left pane
tmux new-window -t cal:1 -n 'Week'
# Create a third window named "Month", split and select left
tmux new-window -t cal:2 -n 'Month'
# Load the calendars
## Note ^M and Enter seem to do the same thing
tmux send-keys -t cal:0 'calcurse' ^M
tmux send-keys -t cal:1 'calcurse $Week' ^M
tmux send-keys -t cal:2 'calcurse $Month' Enter
# Select window 0 and re-attach the session so we can reach it.
tmux select-window -t cal:0
tmux attach -t cal
Now I can set up tasks and priorities, and update according to the work plan. Share via rsyn. And not dependent on the cloud (I can rsync to a stick). Drawback; it is not integrated with Evolution or Thunderbird. tmux send-keys -t cal:0 'calcurse' ^M ^M
tmux send-keys -t cal:1 'calcurse $Week' ^M ^M
tmux send-keys -t cal:2 'calcurse $Month' Enter EnterAlso:
* https://github.com/sup-heliotrope/sup for decentralised and lightning fast email. Written in Ruby, very hackable.
* http://orgmode.org/ Although I'm a vim user, I use orgmode for: All my todos, clocking hours for clients, spreadsheets for my training, research notes, calendar, anything else that needs organising and planning.
Very funny. :-)
http://github.com/ajstarks/deck https://speakerdeck.com/ajstarks/deck-a-go-package-for-prese...
I had been previously using gentoo, where I selected the resolution from a gui. The difference was seems to be ubuntu adopting nouveau a bit earlier than they should have.