Git Product home page Git Product logo

parazeeknova / nyxtext Goto Github PK

View Code? Open in Web Editor NEW
64.0 64.0 4.0 36 MB

an AI-powered tool (soon!) that provides a feature-rich text editor for developers, students, and creatives alike, eliminating the need for them to use any other app for text-related tasks.

Home Page: https://harshsahu-portfolio.vercel.app/pages/project

License: MIT License

Python 100.00%
ai buildspace-projects custom-tkinter development productivity python3 text-editor

nyxtext's Introduction

MasterHead

A first year Computer Science undergraduate from VIT. An aspiring Full Stack  and AI & ML Enthusiast.
✨I translate ideas into pixels and interactivity on the web. View my Portfolio | Projects | Resume | Contact | About

Gmail Twitter Reddit Instagram Discord LinkedIn

Metrics


Show some ❤️ by starring some of the repositories!

nyxtext's People

Contributors

castimonia07 avatar clach04 avatar deepsource-autofix[bot] avatar deepsource-io[bot] avatar imgbotapp avatar mk-1407 avatar noviciusss avatar parazeeknova 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

Watchers

 avatar

nyxtext's Issues

[FEATURE] Have a focused mode

Nyx Text Feature Request

Description

  • Have a option for use to enable focused mode, in which there's only text area to edit and shortcut keys for saving and editing.
  • Vim like keyboard centric environment

Problem Statement

  • Solves the pain to use mouse

Use Cases

  • Speeds up writing in focused manner

Implementation Ideas

  • Not at the moment

Your GitHub Username

[BUG] Currently the text editor isn't responsive, resizing window does not resize

Nyx Text Bug Report

Description

Resizing the window does not resize the widgets and elements within

Steps to Reproduce

  1. resize the window

Expected Behavior

The elements / widgets within the window should resize

Actual Behavior

The text editor works only on full-screen, elements overlap ocures on small displays

Environment

  • OS: [e.g., Windows 11]
  • Nyx Text Version: [latest, non - exe main file atm]

Possible Solution

none at the moment

Your GitHub Username

@parazeeknova

[BUG] can't open files from command line

Nyx Text Bug Report

Description

Editors typically support filenames as arguments and then open them for viewing.editing

Steps to Reproduce

  1. python editor/scripts/main.py editor/scripts/main.py

Expected Behavior

To see source code of main.py

Actual Behavior

No file opened

Screenshots

NA

Environment

  • OS: Windows 10

  • Nyx Text Version: [e.g., v1.0.0]

  • Other relevant information:

    commit 3cfb7d7 (HEAD -> main, origin/main, origin/HEAD)
    Author: Harsh Sahu [email protected]
    Date: Sat Mar 16 23:47:52 2024 +0530

      Initialized new window button
    

Additional Context

[Add any other context about the problem here. For example, any recent changes made to the project, or any workaround attempted.]

Possible Solution

[If you have any ideas on how to fix the bug, or where the problem might be located, please provide them here.]

Related Issues

[If there are any related issues or pull requests, please link them here.]

Your GitHub Username

[Please provide your GitHub username if you would like to be notified about updates or if further clarification is needed.]

Labels

[Choose appropriate labels to categorize the bug report, such as "bug", "needs investigation", etc.]

[BUG] can not open file from GUI

Nyx Text Bug Report

Description

Similar to #14 but with errors.

Attempting to open a file from the GUI results in errors:

  1. window appears then hidden behind main window

  2. stack trace

    (py3venv) C:\code\py\nyxtext>python editor/scripts/main.py
    Exception in Tkinter callback
    Traceback (most recent call last):
    File "C:\Pythons\Python312\Lib\tkinter_init_.py", line 1962, in call
    return self.func(*args)
    ^^^^^^^^^^^^^^^^
    File "C:\code\py\nyxtext\py3venv\Lib\site-packages\customtkinter\windows\widgets\ctk_button.py", line 554, in _clicked
    self.command()
    File "C:\code\py\nyxtext\editor\scripts\framework\welcome_Screen.py", line 55, in
    welcome_open_button = customtkinter.CTkButton(self.welcome_tab,text=" Open file... ", command=lambda: open_window(self.welcome_tab),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\code\py\nyxtext\editor\scripts\framework\welcome_Screen.py", line 54, in open_window
    open = openfile_window(master)
    ^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\code\py\nyxtext\editor\scripts\framework\open_file.py", line 12, in init
    self.wm_attributes('-type', 'splash')
    File "C:\Pythons\Python312\Lib\tkinter_init
    .py", line 2046, in wm_attributes
    return self.tk.call(args)
    ^^^^^^^^^^^^^^^^^^
    _tkinter.TclError: bad attribute "-type": must be -alpha, -transparentcolor, -disabled, -fullscreen, -toolwindow, or -topmost

Steps to Reproduce

  1. start editor
  2. Click "open file"

Expected Behavior

No crash and from code scan file chooser dialog

Actual Behavior

See above

Screenshots

[If applicable, add screenshots to help explain the problem. You can drag and drop images here.]

Environment

  • OS: Windows 10

  • Nyx Text Version: ❗ this information is not available from the GUI - 3cfb7d7 see #14

  • Other relevant information:

    Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32

    • Pillow-10.2.0
    • chlorophyll-0.4.1
    • customtkinter-5.2.2
    • darkdetect-0.8.0
    • packaging-24.0
    • pygments-2.17.2
    • pyperclip-1.8.2
    • tklinenums-1.7.1
    • toml-0.10.2

Additional Context

[Add any other context about the problem here. For example, any recent changes made to the project, or any workaround attempted.]

Possible Solution

[If you have any ideas on how to fix the bug, or where the problem might be located, please provide them here.]

Related Issues

[If there are any related issues or pull requests, please link them here.]

Your GitHub Username

[Please provide your GitHub username if you would like to be notified about updates or if further clarification is needed.]

Labels

[Choose appropriate labels to categorize the bug report, such as "bug", "needs investigation", etc.]

[BUG] Scaling Issues for low width screens

Nyx Text Bug Report

Description

  • Top & Bottom bar doesn't show on small screen devices

Steps to Reproduce

  1. Run Text editor on small display's.

Expected Behavior

  • Editor should auto-scale to fit the ratio of the screen weather it is small or big

Actual Behavior

  • The top_frame and the bottom_frame is overlapped by the text area and file treeview

[BUG] running editor instructions do not work (under Windows)

Nyx Text Bug Report

Description

Following

- Navigate to the project directory:
results in errors:

Traceback (most recent call last):
  File "....nyxtext\editor\scripts\main.py", line 27, in <module>
    customtkinter.set_default_color_theme("editor/scripts/color_Themes/frappe.json")
  File "....nyxtext\py3venv\Lib\site-packages\customtkinter\__init__.py", line 69, in set_default_color_theme
    ThemeManager.load_theme(color_string)
  File "....nyxtext\py3venv\Lib\site-packages\customtkinter\windows\widgets\theme\theme_manager.py", line 23, in load_theme
    with open(theme_name_or_path, "r") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'editor/scripts/color_Themes/frappe.json'

Steps to Reproduce

  1. follow docs
  2. cd to (wrong) directory
  3. run script

Expected Behavior

Not an error

Actual Behavior

an error

Screenshots

NA

Environment

  • OS: [e.g., Windows 10, macOS Big Sur, Ubuntu 20.04]
  • Nyx Text Version: [e.g., v1.0.0]
  • Other relevant information:

Additional Context

[Add any other context about the problem here. For example, any recent changes made to the project, or any workaround attempted.]

Possible Solution

PR #12

Related Issues

[If there are any related issues or pull requests, please link them here.]

Your GitHub Username

[Please provide your GitHub username if you would like to be notified about updates or if further clarification is needed.]

Labels

[Choose appropriate labels to categorize the bug report, such as "bug", "needs investigation", etc.]

[FEATURE] encryption/encrypted and decryption /decrypted support

Nyx Text Feature Request

Description

- [ ] Basic file Encryption / Decryption
mentions support for crypto support.

Any docs on plans/ideas/goals for this?

Problem Statement

See above, clarification on goal

Proposed Solution

[Describe how you envision the feature working and its expected benefits.]

Use Cases

I'm looking for a fast Python editor (ideally with directory/project browsing with spell check) to bolt in my encryption library. Trying to determine if the projects would be compatible with each other.

Implementation Ideas

  1. PEP 272 - https://peps.python.org/pep-0272/
  2. Puren Tonbo - https://github.com/clach04/puren_tonbo (final stable API not confirmed)
  3. something else?

Alternatives Considered

I would recommend NOT going down the PEP 272 route as this doesn't handle crypto containers. It certainly makes sense to use that if you are handling contain/file-format API yourself.

Additional Context

[Add any other context or information that might be relevant to this feature request.]

Your GitHub Username

[Please provide your GitHub username if you'd like to be credited for this feature request or if you'd like to be notified about updates.]

Labels

[Choose appropriate labels to categorize the feature request, such as "enhancement", "new feature", etc.]

Add support for more Terminals[FEATURE]

Nyx Text Feature Request

Description

I treid to open a terminal in NyxText but it is unresponsive.

Problem Statement

When trying to open terminal either by the Run or shortcut CTRL + T it does nothing checking in the terminal I used for starting the NyxText show error

FileNotFoundError: [Errno 2] No such file or directory: 'gnome-terminal'

It indicates the problem that only gnome-terminal is supported.

Proposed Solution

The problem can be solved by just adding support for other terminals too. If you allow me I can start working on it right away

Labels

[enhancement][bug]

[FEATURE] requirements.txt

Nyx Text Feature Request

Description

Provide requirements.txt

Problem Statement

Easier to install, easier to pin versions if required

Proposed Solution

Provide requirements.txt

Use Cases

Installation

Implementation Ideas

See PR #10

Alternatives Considered

[If you've considered alternative solutions to the problem, please describe them here and explain why you believe the proposed feature is the best approach.]

Additional Context

[Add any other context or information that might be relevant to this feature request.]

Your GitHub Username

[Please provide your GitHub username if you'd like to be credited for this feature request or if you'd like to be notified about updates.]

Labels

[Choose appropriate labels to categorize the feature request, such as "enhancement", "new feature", etc.]

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.