Skip to content
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

luci-app-filemanager: Editing hex files improvements #7521

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

rdmitry0911
Copy link
Contributor

@rdmitry0911 rdmitry0911 commented Jan 1, 2025

  • This PR is not from my main or master branch πŸ’©, but a separate branch βœ…
  • Each commit has a valid βœ’οΈ Signed-off-by: <[email protected]> row (via git commit --signoff)
  • Each commit and PR title has a valid πŸ“ <package name>: title first line subject for packages
  • Incremented πŸ†™ any PKG_VERSION in the Makefile
  • Tested on: x86/64, OpenWrt 23.05.2, Chrome, Firefox βœ…
  • Description:

Now the 'Toggle ASCII' button is disabled if the file is hex.

@systemcrash
Copy link
Contributor

Please summarise the changes this PR adds, into the commit messages also. You've closed two previous PRs so that info is lost. This change does not only do "Now the 'Toggle ASCII' button is disabled if the file is hex."

 - Now it uses fs.read_direct() to retrieve the file content
 - Now it opens non-text files in hex Editor by default
 - Now the 'Toggle to ASCII mode' button is disabled in hex Editor if the file is non-text.

Signed-off-by: Dmitry R <[email protected]>
@rdmitry0911 rdmitry0911 force-pushed the luci-app-filemanager branch from 0dbd7d6 to dd6e49a Compare January 1, 2025 20:42
@rdmitry0911
Copy link
Contributor Author

Please summarise the changes this PR adds, into the commit messages also. You've closed two previous PRs so that info is lost. This change does not only do "Now the 'Toggle ASCII' button is disabled if the file is hex."

I commented all the changes in the commit message.

@systemcrash systemcrash merged commit 9f74f00 into openwrt:master Jan 5, 2025
5 checks passed
@systemcrash
Copy link
Contributor

Merged, thanks @rdmitry0911

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants