| Crates.io | align |
| lib.rs | align |
| version | 1.0.0 |
| created_at | 2023-12-09 14:38:32.356082+00 |
| updated_at | 2023-12-09 14:38:32.356082+00 |
| description | Utility for aligning text |
| homepage | |
| repository | https://github.com/mahkoh/align-rust |
| max_upload_size | |
| id | 1063720 |
| size | 52,183 |
Align text.
Before:
static const char *sd_cmd_arg_str[] = {
[SD_CMD_CLEAR_LIBRARY] = "clear -l",
[SD_CMD_CLEAR_PLAYLIST] = "clear -p",
[SD_CMD_CLEAR_QUEUE] = "clear -q",
[SD_CMD_LOAD] = "load %s",
[SD_CMD_NEXT] = "player-next",
};
After:
static const char *sd_cmd_arg_str[] = {
[SD_CMD_CLEAR_LIBRARY] = "clear -l",
[SD_CMD_CLEAR_PLAYLIST] = "clear -p",
[SD_CMD_CLEAR_QUEUE] = "clear -q",
[SD_CMD_LOAD] = "load %s",
[SD_CMD_NEXT] = "player-next",
};
Before:
int a = 111; // a
int aa = 11; // aa
int aaa = 1; // aaa
After align "<><":
int a = 111; // a
int aa = 11; // aa
int aaa = 1; // aaa
Note that the last alignment specifier, <, is used for all subsequent columns.
vnoremap <leader>c :!align<cr>
column -tThis program differs from column -t in the following ways:
GPL 3