Comments (8)
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.
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.
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.
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.
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.
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.
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.
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)
- crash with db4b7c4b HOT 2
- package for Windows HOT 31
- Block drag and drop overwrite/lost character HOT 1
- crash with 2020.1-204-gfd49503 HOT 7
- Windows Split Pane does not retain position HOT 6
- Non-UI preferences should not be saved, breaking nc autostart HOT 5
- Build issue with current head HOT 14
- carriage return when pasting from terminal HOT 8
- Font family alias warnings on macOS HOT 1
- long -svrname argument HOT 3
- crash with latest commit HOT 17
- Using `DISPLAY` when calculating the local socket to use can cause issues HOT 1
- QT version 5.5 or 5.15? HOT 21
- [enhancement] Save and/or reload all files options in Shell menu item HOT 1
- Cursor blink phase does not reset when user enters character
- crash with 857d42e HOT 5
- macro execution stopped HOT 2
- nedit-import: Convert shortcuts to valid QT equivalents HOT 2
- Quick search: implement Clear&Paste by single click of middle mouse button HOT 2
- macro sub focus_window(next) does nothing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â€ïž Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nedit-ng.