Comments (7)
I didn't want nedit-ng
to have an explicit X11 dependency just to read the old .rc file format (They used Xresources as the file format). So, when you build nedit-ng
, it will also create nedit-import
which will import basically everything except font information since that doesn't have an easy 1:1 mapping.
I think that this should cover your needs. Please re-open if this is not the case.
from nedit-ng.
Consider the attached nedit.rc . nedit-import does not import the non-standard "Left Keyword", "Right Keyword" etc... text drawing styles (they should go into theme.xml, right? That file is not created by nedit-import, at least not for me).
As a result, the non-standard Mbdyn syntax highlighting rule is broken.
I do not think that this is the kind of "font information" you are referring to when you say that it cannot be easily mapped.
To be clear: it's not a big deal (one can always re-created them from scratch), but I still think this is a missing feature of nedit-import.
nedit.rc.gz
from nedit-ng.
I'll take a look at the file. Settings like that should definitely get transferred.
from nedit-ng.
So... in the generated theme.xml, I see entries such as:
<style name="Right Keyword" font="Bold" foreground="saddle brown"/>
<style name="Math Keyword" font="Bold" foreground="SeaGreen"/>
<style name="Left Keyword" font="Bold" foreground="black"/>
However, your file has revealed a different bug. My color code doesn't support colors in the format: rgb:e5/e5/e5
.
I'll have to add that, which should make the tool work correctly. Give me a few minutes and I'll upload a patch for that. Hopefully, it'll resolve your issue as well.
from nedit-ng.
just pushed a fix to make the two colors in your example that used rgb:hh/hh/hh syntax get converted correctly. Hopefully, that was the extent of the issue. Please re-open if the problem persists.
from nedit-ng.
I had to dig it a little more, because you are seeing file theme.xml, why I was claiming it was not written at all.
It turns out that if the directory $HOME/.config/nedit-ng does not exist (and it likely does not exist the very first time one launches nedit-import) then file.open(QIODevice::WriteOnly)
at import.cpp:247 fails, and the file theme.xml is not created.
Later on, Settings::savePreferences()
is a little bit more robust, and creates the directory if it does not exist. If, at this point, I re-run nedit-import then theme.xml is created, as it should.
from nedit-ng.
Ah, I will fix that! Thanks for the follow up.
from nedit-ng.
Related Issues (20)
- 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
- nc-ng does not open the file while nedit-ng does (through an ssh connection). HOT 3
- Command/macro to go back to last line(s) visited in file ? 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.