Giter Site home page Giter Site logo

okibcn / nano-for-windows Goto Github PK

View Code? Open in Web Editor NEW
98.0 4.0 1.0 41.93 MB

Windows version of the GNU Nano editor

Home Page: https://github.com/okibcn/nano-for-windows

License: GNU General Public License v3.0

command-line ssh terminal text-editor windows nano

nano-for-windows's People

Contributors

dependabot[bot] avatar okibcn avatar rasa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rasa

nano-for-windows's Issues

Install fails

Installing with scoop the zip extraction fails.

scoop install nano
Installing 'nano' (7.2-22.1) [64bit] from main bucket
Loading nano-for-windows_win64_v7.2-22.1.zip from cache                                                                                                        Checking hash of nano-for-windows_win64_v7.2-22.1.zip ... ok.                                                                                                  Extracting nano-for-windows_win64_v7.2-22.1.zip ... Exception calling "ExtractToFile" with "3" argument(s): "The archive entry was compressed using an unsupported compression method."
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:1056 char:25
+ ...             [System.IO.Compression.ZipFileExtensions]::ExtractToFile( ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidDataException

done.
Running pre_install script...
Linking ~\scoop\apps\nano\current => ~\scoop\apps\nano\7.2-22.1
Creating shim for 'nano'.
Can't shim 'nano.exe': File doesn't exist.

Tried manually extracting the files to ~\scoop\apps\nano\7.2-22.1 and running the install again. The install seems to clear the folder so that was no help.

contents display is out of order on window maximize

CMD,Powershell
If I open a file on init window and maximize the window, then I quit the nano, and reopen the file(or another file),the display is out of order like the following picture.
屏幕截图 2023-11-28 141139

However when I open the file on the maximize window, the display is right.
It seems that if I change the window size when the nano is open,the display will be wired.

Window contents disappear on window maximize/un-maximize

In either a cmd (Command Prompt) window (and not using "Legacy Console" mode), or a wt (Windows Terminal Preview Version: 1.17.1023) "Windows PowerShell" tab, and running

C:\Users\ross\scoop\apps\nano\7.2-8-10163.1\nano.exe filename

and then clicking the maximize button in the upper right of the window, the window content goes black.

If I type ^L, the content reappears. The window also goes blank when I click the maximize button again to restore the window to its original size.

Running

"C:\Program Files\Git\usr\bin\nano.exe" filename

in either cmd or wt window, the contents of the window are redrawn correctly when the window is maximized, or un-maximized.

I've been trying to fix this by changing the Windows Terminal settings, but haven't found a solution yet.

Installation error with Scoop on Windows 11 x64

Hello, I'm trying to install nano using Scoop on Windows 11 x64, but I get an error when extracting the zip file. Here are the steps I followed and the output I got:

...
PS C:\Users\DeepThought> scoop install nano
Updating Scoop...
Updating '.oki' bucket...
Updating 'main' bucket...
 Converting 'main' bucket to git repo...
Checking repo... OK
The main bucket was added successfully.
Scoop was updated successfully!
Installing 'nano' (7.2-22.1) [64bit] from .oki bucket
nano-for-windows_win64_v7.2-22.1.zip (279,0 KB) [=============================================================] 100%
Checking hash of nano-for-windows_win64_v7.2-22.1.zip ... ok.
Extracting nano-for-windows_win64_v7.2-22.1.zip ... Expand-Archive : Exception when calling "Exception when calling "ExtractToFile" with "3" arguments: "The archive record was compressed using an unsupported compression method.".
C:\Users\DeepThought\scoop\apps\scoop\current\lib\decompress.ps1:243 знак:5
+     Expand-Archive -Path $Path -DestinationPath $DestinationPath -For ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Expand-Archive], MethodInvocationException
    + FullyQualifiedErrorId : InvalidDataException,Expand-Archive

PS C:\Users\DeepThought> scoop install nano
WARN  Purging previous failed installation of nano.
ERROR 'nano' isn't installed correctly.
Removing older version (7.2-22.1).
'nano' was uninstalled.

"Transparent" background color instead of color 0

Would it be possible to have the background color be "transparent" so it uses the terminal's defined background color instead of defaulting to color 0? I use color 0 as a background color other places in nano (line numbers, scrollbar, 80 col marker). If its a limitation of PDCursesMod, then I guess I'll just cope with using it through WSL or something...

Arrow keys show `[ Unbound key ]` error

Inside an ssh session (via OpenSSH_for_Windows_9.1p1, LibreSSL 3.6.1) and running nano 7.2-10-10165, when I press any arrow key, the error [ Unbound key ] appears. Edit: The PgUp, PgDn, Home and End keys work fine.

This doesn't happen running git-for-windows' nano version inside an ssh session.

This doesn't happen running nano 7.2-10-10165 in a CMD window or wt window.

Any ideas?

Option statuscolor doesn't work

Hello, excellent project.

I recently installed nano for windows using scoop, copied my nanorc settings file, and while all colors and options applied correctly, I see one that doesn't apply and displays differently to nano GNU versions, is this my mistake? Or have an explanation.

Debian 5.4 (WSL)

Gitbash (nano 7.2)

Windows (nano scoop v7.2-22.1 2023.04.15)

The property that is not applying is

set statuscolor yellow

I haven't tried all of them, so I don't know if something else that isn't in my config file doesn't work either.

Nano for Windows thinking any Key Combination that includes Ctrl or any of the alt keys is a keybind

I am using a keyboard with qwertz layout. Thats why to enter symbols like ~ and \ i have to use a combination of either Ctrl+Alt+key or Alt-Gr+key. However nano ignores any key Combination involving Ctrl, Alt or Alt-Gr, thinking that I am trying to use an unbound keybind. Ctrl+Alt+key not working is acceptable, since this combination is a macro provided by windows. However I can confirm that GNU nano (run over git bash) does in fact not block any combination involving Alt-Gr. I suppose this would be an easy fix, but I dont really have that much time atm, so please do fix.

Winget?

Would it be possible to add this to winget for easy installation natively?
There is one in winget (GNU.nano) but this is using a old build and does not work.

I know i can install it with scoop, but for me I would only install scoop to install this which i would prefer not to do.

unexpected behavior of `^V` key combo

cut/copy and paste will output garbled or invisible text.

example bindings

bind ^X cut main
bind ^C copy main
bind ^V paste main 

Open a file, nanorc for example, use copy/cut binding to copy/cut a line of text, and try to paste with paste binding to a new line.

The same configuration works with nano-win.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.