New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binary files are not displayed properly after tab change #14832
Comments
Notepad++ is a text editor, not a true hex editor. |
I used to work with it like this, it's been fine for ages. It pretty much is hex- or whatever- super-duper multi editor) Actually, I think, I found the problem. What is this param ccShow="No"? Where is it in the config window? It seems not available via GUI. Although, in my setup (after update) it is NO. And in a fresh new install it is YES. And when it's YES, the problem is gone |
Probably relating to one of these:
If you don't have NUL in your data, it is "pretty much ok". |
Ah, I see.. it's linked with this button now. It's behaviour is inconsistent, it has 3 states instead of 2. By default CCs are enabled, button is Off. Then you click it and it's On - CCs are still enabled. Then you declick it and CCs are gone. I can't remember, was it the default behaviour in previous versions? This button used to (?) disable spaces and tabs only, not CCs. |
Similar issue: #13988 |
As you point out, 13988 is a similar issue. I'd forgotten about that one. Regarding the ¶ toolbar button, it is intended to be an "all on" or "all off" control. |
More information regarding this button was added to the user manual: https://github.com/notepad-plus-plus/npp-usermanual/pull/646/commits |
I got your idea. But still believe it's a wrong approach. That's why:
I believe that the behaviour of the button was changed unintentionally. Someone added a new functionality allowing user to hide control characters. And he placed it into the submenu that was controlled by that button. So the button got this new function. As there's a bug related to that change, it may prove me right, the programmer just did it without noticing this hidden impact. At least I haven't found any related discussions. |
I see what is happening for you in your animated screen capture in your "Second" bullet point. |
Of course, you can't. That is classic NPP behaviour from previous versions (v6 will do). It used to work like that from the beginning of the project. But it changed recently when that new menu item was added. |
Btw, here is the commit: 0cad36d , April 11 2023 by @ozone10 . Long story short: donho decided (#13324) to change the "Show All Characters" button behaviour... Now there is a quick way to DISABLE CCs with the "Show All Characters" button. But to ENABLE them back you have to go to a menu and then a submenu. And yeah, you'll have to google it first: |
Ah, I misunderstood. Anyway, the behavior is 8.6.4 (of the button) is as the developers desire. And it's fine with me as well. Not sure how many users would be on your side (impossible to know, unless they comment here). |
For users that desire some alternative functionality to how the toolbar button works, you can create some macro(s) and bind them to keycombo(s) for quick access. For example, here are two possible macros (that could be added into
Some notes on the macros:
Here are the command ids for the possible commands:
|
Description of the Issue
Hi. After updating NPP I found out that I can't edit binary files anymore. They open normally, but then if I switch to another file (another tab) and go back, NPP freezes and then shows the binary file stripped from all non-printable symbols.
In the newest version same happens when I open binary via Explorer context menu -> Open in NPP. The only way to view it correctly is to drag it into NPP window.
Steps to Reproduce the Issue
Expected Behavior
Actual Behavior
Debug Information
Notepad++ v8.6.4 (64-bit)
Build time : Feb 20 2024 - 00:12:59
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : ON
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 7 Professional (64-bit)
OS Build : 7601.0
Current ANSI codepage : 1251
Plugins : none
The text was updated successfully, but these errors were encountered: