{{{
Migrations for 'app':
app/migrations/0056_auto_20161210_1755.py:
}}}
In most X11 terminals, double-clicking on the filename will select the
text between spaces and copy it into the mouse paste buffer. However,
since there's a colon affixed to the end of the generated filename, it
gets selected as well, meaning that it's necessary for users to either
edit the pasted contents prior to use, or carefully select all of the
characters except the colon.
May I suggest simply adding a space between the filename and the colon, so
that double-clicking the name won't select the colon. Or alternatively,
eliminating the colon. Allowing the filename to stand free will prevent
the affixed colon from getting in the way.
A one-character patch to add a space:
{{{
--- makemigrations-orig.py 2016-12-10 10:56:18.224099088 -0700
+++ makemigrations.py 2016-12-10 10:50:45.518233440 -0700
@@ -210,7 +210,7 @@
migration_string = os.path.relpath(writer.path)
if migration_string.startswith('..'):
migration_string = writer.path
- self.stdout.write(" %s:\n" %
(self.style.MIGRATE_LABEL(migration_string),))
+ self.stdout.write(" %s :\n" %
(self.style.MIGRATE_LABEL(migration_string),))
for operation in migration.operations:
self.stdout.write(" - %s\n" %
operation.describe())
if not self.dry_run:
}}}
This would eliminate an annoyance for X11 mouse users, and have no
negative impact on users of other systems. Since it's possible that
someone's parsing the output of `makemigrations` and expecting affixed
colons, it could be considered a breaking change.
--
Ticket URL: <https://code.djangoproject.com/ticket/27588>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Ready for checkin
* type: Uncategorized => Cleanup/optimization
Comment:
I think the colon could be omitted without any harm.
--
Ticket URL: <https://code.djangoproject.com/ticket/27588#comment:1>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"7a4e2fc5a2a6869089a79170e7d2903e1138bb2e" 7a4e2fc]:
{{{
#!CommitTicketReference repository=""
revision="7a4e2fc5a2a6869089a79170e7d2903e1138bb2e"
Fixed #27588 -- Removed unneeded colon in makemigrations output.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27588#comment:2>