ProgerXP / Notepad2e

Word highlighting, simultaneous editing, split views, math evaluation, un/grep, comment reformatting, UAC elevation, complete regexps (PCRE), Lua lexers, DPI awareness and more (XP+)
Other
372 stars 52 forks source link

Add command to copy result of math expression #414

Closed ProgerXP closed 2 years ago

ProgerXP commented 2 years ago

Add --- and Copy &Result (hotkey: Alt+Shift+R) to the end of Settings > Evaluate Math Expressions. The command is always enabled and works independently of the setting, as if the setting was set to Current Selection or Line: on non-empty selection it evaluates selection and copies the result, on empty - evaluates line and copies the result. "Copy" means the same action as left-clicking does on the status bar group (respecting current radix mode, #404, etc.). If the to-be-evaluated expression is invalid, clipboard is unchanged.

cshnik commented 2 years ago

Done.

ProgerXP commented 2 years ago

"Copy" means the same action as left-clicking does on the status bar group (respecting current radix mode, #404, etc.).

404 was not implemented for this command.

cshnik commented 2 years ago

Fixed.