bined-intellij-plugin icon indicating copy to clipboard operation
bined-intellij-plugin copied to clipboard

Copy does nothing for non-printable characters

Open reinderien opened this issue 5 years ago • 1 comments

Currently, if you've selected a range of non-printable characters, 'copy as code' will function to show the hex content, but 'copy' will do nothing. This breaks the principle of least surprise. When a selection is made on the left-hand side, copy should simply copy the hex content shown in the editor. In other words,

  • Copy should use hex content or raw content based on context (left or right selection)
  • Copy as code should always use hex content
  • Copy as raw (which does not currently exist) should always use raw content

reinderien avatar Aug 17 '18 19:08 reinderien

Actually copy works in raw mode, although it's only internal and is not compatible with other applications yet. This allows to insert (or overwrite) the same sequence of bytes in other position.

As for different text in clipboard depending on active section, it makes sense. But I would address this in combination with section specific popup menus, which should be available in version 0.2.

As for copy as code, preferred variant would be separate format configuration or to show dialog for it every time, but that's for later releases as well.

hajdam avatar Aug 17 '18 20:08 hajdam