Open whatsupbros opened 11 months ago
Can you give me some more details on how exactly you would expect this to work? I am having trouble understanding right-alignment in left-aligned environments.
How would the extension know where to insert the whitespace?
For example, what should happen in the following to "right-align" to words "love"? A or B? And how would the extension know?
Perhaps this would only be possible with selections which would define the bounds of the text to be right aligned. Outcome B would be possible if the user selected "She", "My Friend", and "Nobody".
var i = 0; // She loves pie.
fu(); // My friend loves chocolate cake.
bar(); // Nobody loves muffins.
A. Start of line.
var i = 0; // She loves pie.
fu(); // My friend loves chocolate cake.
bar(); // Nobody loves muffins.
B. ???
var i = 0; // She loves pie.
fu(); // My friend loves chocolate cake.
bar(); // Nobody loves muffins.
A feature to right-align all cursors/selections by adding necessary white space from the left would be really nice.
This is useful when you have several "parts" in your statement, and need to align those parts between each other, in example,
SELECT
/FROM
/WHERE
/GROUP BY
/ORDER BY
parts in SQL queries.Example
Original text
Left-aligned at the second word (current functionality)
Right-aligned at the second word (desired functionality)
Real world usage example in SQL query
As shown here,
SELECT
,FROM
,WHERE
,AND
are right-aligned, which is required in some projects.