Age | Commit message (Collapse) | Author |
|
Generate a filename using the current date and time. Still saves to the
home directory. That's the next step, we'll need to find a way to
customise the save directory.
|
|
Ensure that special characters don't cause the YAML to be invalid by
wrapping the URL and page title in quotes to force them to be strings.
Escape any literal single quotes in the page title by doubling them.
Didn't escape single quotes in the URL because I'm assuming any present
will be URL encoded.
|
|
* Change the temp file's extension to ".yml"
* Remove blank line between pages
* Output a YAML array of hashes containing the page titles and URLs in
Copy URLs From All Tabs format
|
|
Turns out `(last page 1)` didn't actually extract the page title string
from the list previously created by `LAST`. To extract the title string
from the list, just use `FIRST` and get rid of the now seemingly
unnecessary third argument.
|
|
Ended up not using this. Wrote that when I started writing the function,
but I ended up needed something a bit more complicated with maps and
joins etc.
|
|
* Use a real path for the temporary file because otherwise it either
doesn't get saved, or I have no idea where it gets saved to.
* Use the `INSERT` function to actually write the string to the
temporary file buffer.
* Use `(last page 1)` with the `1` argument at the end now as a way to
try to get it to return us the string instead of a single-element list
containing the page title. Not sure if this works though.
|
|
Use a temporary hard-coded file.
Construct a string with each page turning into a URL and page title on
separate lines, and a blank line between pages.
Doesn't quite work just yet, but the general idea is there.
|
|
* Extract the list of crash recovery session buffers to a function to
give it a name. I'll come up with a better name later.
* Grab the first and last elements of each buffer sub-list and create
tuples from them. This gives us a list of two-element lists containing
the URL and title of the pages.
|
|
Grab the buffers saved to the "Crash recovery session" in "emacs-w3m"'s
session file. Just list them for now. We'll be using this to create a
backup file.
|