Giter Site home page Giter Site logo

juban1 / notepadqq Goto Github PK

View Code? Open in Web Editor NEW

This project forked from notepadqq/notepadqq

19.0 19.0 3.0 10.77 MB

Notepad++-like editor for Linux

Home Page: http://notepadqq.altervista.org

License: GNU General Public License v3.0

QMake 1.05% Makefile 0.04% JavaScript 0.62% C++ 97.89% Shell 0.28% Roff 0.07% Dockerfile 0.03% C 0.02%

notepadqq's People

Contributors

aadityakalsi avatar daniel-mccarthy avatar danieleds avatar darealshinji avatar david-geiger avatar einsteinsfool avatar eson57 avatar flamusdiu avatar flavio20002 avatar hawkeye116477 avatar jdeluyck avatar juban1 avatar kensington avatar maisondasilva avatar marcom32 avatar mek101 avatar micrococo avatar openningia avatar pcatalani avatar qcerasmus avatar realasking avatar rprego avatar sandorpetrovics avatar scx avatar sicklylife-jp avatar teklad avatar turnrdev avatar vpop avatar wevsty avatar xdshot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

furuya7 infra223

notepadqq's Issues

Dependency Questions

Building a package for Arch and ran into a couple discrepancies between expected dependencies according to namcap (arch tool for validating packages) and the dependencies listed in the README, namely:

  • Referenced library 'node' is an uninstalled dependency (not mentioned in readme)
  • Dependency 'qt5-svg' is included and not required (specified as dependency in readme)

I'm assuming 'node' refers to nodejs and it's needed for the extensions and should be considered optional? Is it required for anything else? (it seems to work fine without it at least)

and i'm guessing 'qt5-svg' was required for the latex style math functionality which i understand has not yet been added to OTE, is it still otherwise required or can it safely be dropped?

Tab (file) navigation via Window menu

I keep my editor window around 600px wide. So only 4-5 of my open files are visible on the tabs and file navigation via tabs are cumbersome and time consuming.

It would be a very fine convenience to be able to reach the open files (tabs) via the Window menu which currently only has one item.

[Meta] Upstream issues that are fixed in OTE

The following features are added:

  • notepadqq#307 - Gutter Bookmark On Click
    • Note: OTE has bookmarks but they are not hooked up into Notepadqq's UI.
  • notepadqq#497 - Ligature font support?
  • notepadqq#542 - Allow user to choose specific font, instead of generic font.
  • notepadqq#756 - Feature request: disable line numbers
    • Note: Feature exists in OTE, but isn't hooked into Nqq's UI.
  • notepadqq#758 - Column mode accessible with keyboard
  • notepadqq#787 - Setting to disable drag and drop text move
  • notepadqq#724 - Feature requests: cursor blink rate and line highlighting
  • notepadqq#444 - Move view with Ctrl + Up/Down
  • notepadqq#743 - Track line edits on open files as in KDE Kate

The following bugs are either confirmed fixed (or very likely to be fixed due to their specific nature).

  • notepadqq#306 - Cannot make 'home' key go to beginning of line with a single press
    • Note: This is a change in default behavior. Probably needs a switch so we can have "smart" cursor movement as well.
  • notepadqq#365 - "Show all symbols" does a line break
  • notepadqq#368 - Extreme lag when dragging some text
  • notepadqq#415 - Wrong DPI on Retina screen (was: can't follow the system synchronization Zoom)
  • notepadqq#466 - Markdown syntax hilighting doesn't always work
  • notepadqq#510 - Can't copy nbsp
    • Note: nbsp shows up fine in 'Show All Characters'. Not sure if it's actually accepted as a nbsp.
  • notepadqq#416 - Selected content replaced with a minus sign ater copying it with right click menu and pasting on another software or tab.
  • notepadqq#576 - Scroll bars difficult to see
  • notepadqq#496 - Segmentation fault in Ubuntu 17.10
  • notepadqq#460 - randomly closing
  • notepadqq#464 - Opening large files does not work
    • Note: Works to a degree. I could open a 220MiB file (1 million lines!) but it took ~40 seconds to do so. "Smaller" files of ~20MiB open near instantly.
  • notepadqq#653 - Some weird hang ups when in markdown mode
  • notepadqq#527 - support supplementary (4-byte utf-8) characters
  • notepadqq#660 - Accents in Portuguese
  • notepadqq#593 - After the update "Segmentation fault" error
  • notepadqq#722 - Bug (cosmetic): Bold text is invisible when viewing Markdown with Solarized
  • notepadqq#323 - High DPI displays not supported
  • notepadqq#405 - QWebEngine: Resizing window is sluggish
  • notepadqq#772 - Double-click highlight-all does not work on words with accented characters
  • notepadqq#704 - Preview of OpenTextEdit Integration
    • Note: So meta
  • notepadqq#782 - Notepadqq can't show the first number in the first column
  • notepadqq#792 - Tab key does not work as expected.
  • notepadqq#360 - fcitx support?

Make it behave more like notepad++

  1. Selecting several lines and pressing TAB will overwrite content with TAB, instead of indenting; although this can be achieved with ALT+SHIFT+ARROWS, it is not so easy to use
  2. Bring back the CTRL+K / CTRL+SHIFT+K functionality: comment/un-comment selected lines (# followed by one space), this is extremely useful to have; right now this key combination just deletes the selection
  3. Allow user to alter default language syntax highlighting, based on file extension. For example, right now notepadqq applies ZSH for highlighting for .sh files and I want to make it apply BASH instead.
  4. In notepad++, going with mouse just on the left of the line numbers, in the left strip, the mouse cursor would invert horizontally and on click + drag, all corresponding lines could be selected
  5. Was glad to find the notepad++ solarized dark but main notepadqq has way more themes to choose from, even though I use this one

Update to 2.0beta master?

Do you think it's feasable to update the fork with the upstream changes of 2.0 while retaining the faster startup times? :)

[Meta] Upstream issues that ought to be fixed in OTE

These upstream issues concern functionality that OTE is meant to replace. These make good candidates for future work.

  • notepadqq#148 - Vertical line at a specific column
  • notepadqq#324 - Option to set page width for a document in notepadqq ?
  • notepadqq#420 - Matching word highlighting must highlight matching whole words only
  • notepadqq#234 - Replace "in selection" functionality is missing
    • Note: Search/Replace interface is due for a rework. The functionality exists for the most part.
  • notepadqq#628 - Cant collapse Pyton Block With Comments at the end
    • Note: Function/conditional blocks can't be folded in Python at all it seems.
  • notepadqq#745 - Undoing regex replace on multiple matches affects only last match
  • notepadqq#734 - Ability to mark lines as in notepad++
    • Note: Needs a fair bit of change to Nqq's code. Might want to add parameters to OTE's search/replace functions for this.

Compilation error on Ubuntu 18.04

Compiling fails at textedit.cpp:

c++ -c -O2 -std=gnu++1y -Wall -W -Wold-style-cast -D_REENTRANT -fPIC -DQT_NO_URL_CAST_FROM_STRING -DQT_DEPRECATED_WARNINGS -DAUTOLOAD_Asana_FONTS -DQT_DEPRECATED_WARNINGS -DNO_STANDARD_PATHS -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -isystem /usr/include/uchardet -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I../../out/build_data -isystem /usr/include/libdrm -I../../out/build_data -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o ../../out/build_data/textedit.o ote/textedit.cpp
ote/textedit.cpp: In member function 'void ote::TextEdit::setFont(QFont)':
ote/textedit.cpp:247:22: error: 'm_tabWidth' was not declared in this scope
     auto stopWidth = m_tabWidth * fm.width(' ');
                      ^~~~~~~~~~
ote/textedit.cpp:247:22: note: suggested alternative: 'setTabWidth'
     auto stopWidth = m_tabWidth * fm.width(' ');
                      ^~~~~~~~~~
                      setTabWidth
Makefile:1227: recipe for target '../../out/build_data/textedit.o' failed
make[1]: *** [../../out/build_data/textedit.o] Error 1
make[1]: Leaving directory '/home/djcj/Downloads/notepadqq-JuBan1/src/ui'
Makefile:45: recipe for target 'sub-src-ui-make_first' failed
make: *** [sub-src-ui-make_first] Error 2

I'm using Ubuntu 18.04 and the system's default Qt5 stuff.

Text dragging doesn't work

I compiled your fork and it is visibly snappier than the original version! However, I'm unable to drag and drop any selected text. The mouse cursor changes when I select and drag some text but nothing happens when I try to drop it.
The workaround is to manually cut and paste text, which is not exactly ideal.

Environment:

  • Linux Mint 20 Cinnamon
  • Qt 5.12. It was installed from apt per your instructions

Let me know if you need more details.

I just hope you will continue to work on this program; it's already superior to the original version. Thank you for your work!

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.