Added some actions (gist copy & gist paste into working buffer) and enhanced the listing layout. #206
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While on the gist-vim listing split, the following mappings are now working:
Extra stuff:
Gist listing has fixed-length columns now, more amenable to eye inspection. Every line on the gist-listing buffer contains the gist id, name and description, in that order. Columns are now padded and truncated to offer a faster browsing, in the following way:
The gist id string is fixed at 32 characters.
The length (in characters) of the name of the gist is fixed and can be set by the user using, for example:
let g:gist_namelength = 20
The default value for gist_namelength is 30. If the gist (file)name exceeds that length, it is truncated to the specified length.
Finally, the gist description is truncated in length to fit the remaining of the line, avoiding wrapped lines that mess up the table layout.
Note that the gist listing buffer now does not show the field 'code' (not sure what that did in the first place).
Now the listing is complete (no need to select 'more' to see the following gists on the list), in this way the user can later perform a search (using vim's /, for instance) for the sought gist by name, description, etc.
The first line on the gist-listing states the number of gists listed and the user whose gists are being listed.
The height of the gist-listing buffer is now determined in the following way. If the number of gists listed equals or exceeds 10, then the height is fixed at 10. If it is smaller than 10, then the height is adjusted so that there are no empty lines displayed on the buffer.
All this information has been added (with better phrasing) to the documentation.