Giter Site home page Giter Site logo

Comments (8)

eteran avatar eteran commented on May 30, 2024

Can you elaborate? there is an "expand" command in the shell menu in nedit-ng, it should be functionally equivalent to the one in the original nedit... but it's not a macro I've ever used so it's hard for me to tell if it is misbehaving. If it is, please explain what you expect to happen vs. what actually happens (also please let me know if you are using a version'ed release or something like a clone of the master branch please).

Thanks

from nedit-ng.

agarrubio avatar agarrubio commented on May 30, 2024

The "expand" command converts "TAB"s to spaces. Unexpand does the opposite.
On the other hand, Nedit's "expander.nm" would expand "IMHO" to "In my humble opinion", and much more complex things, including "placeholders" for variables in code. Most code editors include them, and call them snippets.
https://en.wikipedia.org/wiki/Snippet_(programming)
By the way, just yesterday I was thrilled to know that you are resurrecting Nedit: I can't thank you enough!

from nedit-ng.

eteran avatar eteran commented on May 30, 2024

expander.nm seems to be part of the nedit-macro-kit. https://github.com/mrbald/nedit-macro-kit/blob/master/macro-kit/macro/expander.nm

This should "just work" if you add those macros to nedit-ng. If it does not, please let me know what specifically is not working with it.

from nedit-ng.

agarrubio avatar agarrubio commented on May 30, 2024

Every day I use nedit 5.6 with an old expander I've got long time ago.
Today I cloned https://github.com/mrbald/nedit-macro-kit.git and installed using
the macro-kit/install/nedit-5.5.rc file provided, since there is no version for 5.6.
Everything worked!

Then, to install into nedit-ng, I altered the version of nedit-5.5.rc so that it pretends to be 5.6. Then I used "import-nedit" to import that configuration file. So far, so good! However, when I try to load the macro file "autoload.nm" (as I did in Nedit 5.6), nedit-ng crashes with "segmentation fault".

I don't want to waste your time with my problems, but if you have some quick thoughts, that would be useful.
Many thanks!

from nedit-ng.

eteran avatar eteran commented on May 30, 2024

Great, we can replicate the problem!

Can you tell me which version of nedit-ng you are using? If you aren't trying the latest master branch, please do. If you're already on master, please let me know and I'll do what I can to reproduce this locally and quickly fix it as a segfault should never happen.

from nedit-ng.

agarrubio avatar agarrubio commented on May 30, 2024

Thanks Evan! This is my version:
nedit-ng version 2018.4
Built on: Linux, 64 bit, GCC 5.4.0 20160609
Built at: May 21 2018, 02:25:39
With Qt: 5.5.1
Running Qt: 5.5.1
Locale: en

from nedit-ng.

eteran avatar eteran commented on May 30, 2024

OK, I've identified at least part of the problem. This file contains characters such as ĂȘ, which Qt's strings are expanding differently than nedit used to... throwing off the string length calculations.

I'll let you know when I get to the bottom of this and have a patch ready.

from nedit-ng.

eteran avatar eteran commented on May 30, 2024

This patch should make the import and loading of macros from the nedit-macro-kit work correctly! Now non-english characters in the macro code won't break loading or importing.

Since that kit provides the capability requested, I'm closing this issue.

from nedit-ng.

Related Issues (20)

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.