Giter VIP home page Giter VIP logo

rtext's People

Contributors

bobbylight 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtext's Issues

Exception when closing on OS X

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)

Pretty-printing doesn't work when a file is opened as command-line parameter

To reproduce:

  • Open a zip or 7z file with a JSON file in it
  • Double-click the JSON file to open RText
  • Alternatively, start RText with a command line paramter to open the file

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.

Add Dark LookAndFeel

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.

Turn off code folding if file size > some threshold

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:

  • Opening a file
  • Changing a file's extension
  • Changing the syntax filters

Build with Java 11

Java is changing rapidly under Oracle. In an effort to avoid RText slowly dying, we should:

  • Build with Java 11
  • Require Java 11 at runtime
  • Windows and OSX packages should come bundled with the JRE to run with, to avoid deprecated method removals in future versions of Java.

NullPointerException when opening the About dialog of RText 3.0.0

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)

Editor context menu - Show In -> File Tree

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.

I wish for SFTP

Cool cool cool! This editor might replace jEdit for me - IF I can get it to work with SFTP.

Improve filename rendering in tabs

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.

Add Python code folding

Now that RSTA supports Python code folding, we should add it to RText. Make it toggleable in the Options dialog like with other languages.

Warning about reflective access to system LaFs

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.

Keyboard shortcuts to switch tabs quickly on OS X

⌘-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.

Add ability to skip folders in find-in-files dialog

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.

jRuby shell

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!

"Save a Copy as Web Page..." don't save background color

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.

Support for Unity Menubar on Ubuntu

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...

Dark theme icon improvements

  • Flatter window icon. Not necessarily different icon for taskbar, but for the window itself. The current one is too bright and has too much "depth'
  • Flatter "stop" icon for the Console plugin
  • Flatter "back" and "forward" icons for the File System Tree plugin
  • Better "Folder" and "File" icons for the Help dialog
  • Better file icon for .sql files in the tabbed pane
  • Breadcrumb bar should not have the pseudo-3D look for armed folder names

Theme selection

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.

Increase/Decrease font size is broken

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.

NPE on save when user cancels Options dialog after changing app theme

To reproduce:

  1. Edit -> Options
  2. User Interface panel -> select a new theme and click "Apply"
  3. Click "Cancel" to close the Options dialog (not OK or its Apply button)
  4. Close RText

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)

From SikuliX: Only to let you know ...

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.

"Open in..." -> "System (Editor|Viewer)" should try the other when one fails

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.

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.