bobbylight / rtext Goto Github PK
View Code? Open in Web Editor NEWA syntax highlighting, code folding, programmer's text editor written in Swing. http://bobbylight.github.io/RText/
License: BSD 3-Clause "New" or "Revised" License
A syntax highlighting, code folding, programmer's text editor written in Swing. http://bobbylight.github.io/RText/
License: BSD 3-Clause "New" or "Revised" License
Throws an NPE.
Like it says on the tin. JFileChooser is not as user-friendly as RFileChooser.
Makes it so you cannot close the application!
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at org.fife.rtext.plugins.langsupport.Plugin.savePreferences(Plugin.java:649)
at org.fife.rtext.RText.savePreferences(RText.java:1192)
at org.fife.rtext.RText.doExit(RText.java:449)
at org.fife.ui.app.AbstractGUIApplication.processWindowEvent(AbstractGUIApplication.java:1006)
at java.awt.Window.processEvent(Window.java:2013)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
To reproduce:
Expected behavior:
Ctrl+Shift+P pretty-prints the JSON
Actual behavior:
Ctrl+Shift+P is disabled
A workaround is copy-pasting the file content into another JSON file, or manually opening the file in RText.
RText lets users add their own LookAndFeels, but it would be nice if it shipped with one OOTB, likely Darcula or something based off of it since it's nice-looking, simple, and based off of BasicLookAndFeel so isn't likely to cause trouble.
Bonus points if it integrates with the upcoming "theme" spport.
Code folding is a beast when it comes to performance (and memory usage for certain file types, such as XML). Provide a configurable option that will not enable code folding if a file is > some user-defined size.
This property will need to be checked when:
If "Open in..." -> "System Viewer" fails, we should automatically try "System Editor" before beeping at the user. Same with "Open in..." -> "System Editor".
Java is changing rapidly under Oracle. In an effort to avoid RText slowly dying, we should:
We have standard "error" and "warning" icons for DecorativeIconPanel that look good in a light UI, but not in a dark one. We should use better icons when using Darcula.
"Real" (non-logical) folders and files should have a "copy path to clipboard" menu item.
Like it says on the tin. Currently opened as plain text by default.
Open RText 3.0.0.
Open the About dialog by pressing "Help" > "About".
A NullPointerException appears.
Operating System: Microsoft Windows 10 Pro 64 bit, build SO 17134.441
The complete stacktrace:
java.lang.NullPointerException
at org.fife.ui.app.AbstractGUIApplication.getBuildDate(AbstractGUIApplication.java:699)
at org.fife.rtext.AboutDialog.<init>(AboutDialog.java:90)
at org.fife.rtext.RText.createAboutDialog(RText.java:304)
at org.fife.ui.app.AbstractGUIApplication.getAboutDialog(AbstractGUIApplication.java:558)
at org.fife.ui.app.GUIApplication$AboutAction.actionPerformed(GUIApplication.java:403)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Add an item to text editors' context menus - Show in File Tree
or some similar wording. Have it display the File plugin tab (if it's hidden), focus it, and select the current file. If the file doesn't exist, beep.
Cool cool cool! This editor might replace jEdit for me - IF I can get it to work with SFTP.
This is configurable, but the OOTB install should highlight XSLT files as XML.
It's included in RSTA 2.6.1.
RText currently labels different files with the same name via incrementing numbers, e.g.
file.txt (1)
file.txt (2)
A better approach is that used by IntelliJ - in this scenario, prefix each file name with the parent folder name:
dir1/file.txt
dir2/file.txt
In the case that the parent folders have the same name, I'm not sure whether it's better to go yet another level up, or use the numbering scheme. We don't want the tabs to get too long. But in theory this will be a pretty rare occurrence.
Now that RSTA supports Python code folding, we should add it to RText. Make it toggleable in the Options dialog like with other languages.
We currently have "Move up" and "Move down", but sometimes you create a new project and want it to display on top, for example. Or you have an old project you want to keep around, but want to quickly move it to the bottom of the list.
I get this error when I try to build:
org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.fifesoft.rtext:fife.common:3.0.2-SNAPSHOT.
When I load a 40 MB text file in RText, I get a 1GB Java VM...
Probably not easy to improve?
Many greetings
Java 11+ print a warning to the console about reflectively accessing system LookAndFeels such as WindowsLookAndFeel on Windows or Aqua on OS X. We use reflection to install LookAndFeels since we use a separate ClassLoader to load user-provided jars for optional LaFs. To avoid this warning we'll need to add a little extra logic to sniff out when the user is trying to install the system LookAndFeel, and use a different means of installing it if so.
The current color is a dark purple. Should be changed to rgb(255, 153, 0)
On OS X, nothing happens when you select "Add Folder..." to a project in the Project tree. Everything is hunky dory on Windows.
⌘-Option + Right/left arrow keys should go to next/previous tabs, respectively, on OS X. This mimic's Chrome's behavior. Ctrl+PageUp/PageDown is not Mac-ish, and doesn't work so well on Macbook Pros anyway.
Like it says on the tin.
The Find in Files dialog can recursively search in a folder for text, but you cannot specify subfolders to skip. Some times you want to skip some subfolders in the hierarchy; for example, .git, .svn, CVS, bower_components, node_modules.
While we're at it, the default for "Search in subfolders" should probably be true.
Hello,
I'd like to see a jRuby shell in RText, in the same way it has a Javascript (Rhino) shell.
Thank you for RText!
If you have choosen the dark theme ("Edit" -> "Options..." -> "Theme" -> "Dark") , then you can see, what I mean.
If you export then your code as HTML ("File" -> "Save a Copy as Web Page...") , the default background of the most browsers is white. And so you see nearly nothing.
So, in the background color have to be set, too.
Add a right-click menu on results in the Find in Files and Replace in Files dialogs allowing users to Open in
-> System Viewer
or System Editor
.
I switched from Windows to Ubuntu and reinstalled RText. The problem was that it doesn't support the Unity menubar (the toplevel window menubar, like the one on Mac OS X that is supported).
Would be fine to see that...
The editor's context menu has a "Show in File System Tree" menu item that does work, however if the FST is not visible because the side panel is collapsed, it isn't expanded. It should auto-expand as part of this operation.
Syntax highlighting and code folding
Like it says on the tin. Let's be cheap and just share the .jshint code path where possible.
Whereas the File
-> Recent Files...
menu remembers its recent file list between sessions, the Recent Files dialog (Ctrl + Shift + R) doesn't. It should.
Let the Files pane (file system tree) remember last location when launched, or sync with current file, such as seen in Eclipse.
That way it gets highlighted properly out-of-the-box.
Changing the theme in RText is quiet painful. RSTA already ships with some nice themes,, but RText does not provide any way to use them, expect for manually change every color for every single token type. A button like "Import" would be fine, maybe also a button for exporting the current selfmade theme.
Like it says on the tin. Currently those two plugins open the selected file in a new tab, whether or not the file is already open in RText. It's more user-friendly to switch to that tab instead.
The Increase/Decrease Font Size actions don't adjust all font sizes for all token types by the same amount. There is a bug that doubles the increase/decrease amount for token types, which them off-by-one in either direction from the "main" text area font size. This leads to weird behavior where increasing, then decreasing, the font size doesn't return the editor to its previous appearance.
To reproduce:
Expected behavior:
"Apply" for the theme is a special button that applies all new theme state and doesn't trigger errors even if the overall theme changes are cancelled.
Actual behavior:
An NPE is triggered and RText doesn't close.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at org.fife.rtext.RTextPrefs.save(RTextPrefs.java:620)
at org.fife.rtext.RText.savePreferences(RText.java:1192)
at org.fife.rtext.RText.doExit(RText.java:452)
at org.fife.ui.app.AbstractGUIApplication.processWindowEvent(AbstractGUIApplication.java:983)
at java.desktop/java.awt.Window.processEvent(Window.java:2037)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
In the Java - Build path - Add, allow browsing or adding a list. If many jars are added to a script, it takes a lot of time to add by copy/pasting names and paths.
I am RaiMan from SikuliX (http://sikulix.com)
I decided to take a deeper look at your RText and the related packages.
I made an independent copy from the forks and turned it into a multi module Maven project (https://github.com/RaiMan/RText4SikuliX)
As a next step I will strip it down to my needs and try to implement the Sikuli specific features, to get a more mature IDE ready for Sikuli scripting.
The alternatives would be JEdit and the NetBeans Platform.
If I find anything of value for you, I will report it back.
Add a menu option for "Find in Files from here" for folders in the Project tree view. Tie it to Ctrl/Cmd+Shift+F.
Probably related to enabling custom window decorations. It's annoying to not be able to drag and drop files into the editor.
Requires fixing RSyntaxTextArea bug 94 and slight tweaking of RemoteFileChooser to allow all content to be pre-filled in except password (since FileLocations do not store passwords for remote files).
The AWT API, distinguishing between editor and viewer applications, is nice, but difficult to put into a UI nicely. We currently let the user choose between editor and viewer in the file chooser, File System Tree, and Plugins windows. We should try to open in whichever they requested, and if it fails, try the other type instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.