The plugin I'm trying to fix is MoveText. When you drag text up or down, it stores the initial column location, so that if you move to a row that doesn't have enough columns, it can remember the original column and use that if you move up to a row that does have enough columns in it. The important thing here is that I need to find out what the previous command was.
The mechanism for this is View.command_history, but it is not giving me the command I want. This is a recent bug. The way undo history works has changed. It now groups more commands into one history entry (and I for one wish it didn't!). And there is no way to control this. It would be great to say "this is a change that should not be grouped with other changes".
The extra special frustration is that the console does return the most recent command, even though in the plugin it reports something different.
One easy way to fix this, if people disagree that undo history should be more granular, is to add a command to View that tells you the last command that was run, but not based on undo history.
Customer support service by UserEcho