Giter Club home page Giter Club logo

qtextpad's People

Contributors

zrax avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

qtextpad's Issues

Notify on file changes

Feature request: When the qtextpad window becomes focused, it would be handy to notify the user if the currently open file was modified or deleted. The user could be prompted for an action to take based on the change.

Code Folding support

Sometimes I have to look at XML files with a lot of very nested collections of elements, and it would be nice to be able to collapse/fold those spans for easier skimming.

Trying to make an AUR package

But can't "make"

make: *** No rule to make target 'install'. Stop.

And here's my PKGBUILD:

pkgname=qtextpad
pkgver=0.9
pkgrel=2
pkgdesc="Lightweight Qt text editor using KF5's syntax highlighting repository."
arch=('x86_64')
url="https://github.com/zrax/qtextpad"
license=('GPL3')
depends=('qt5-base' 'syntax-highlighting')
makedepends=('cmake')
provides=('qtextpad')
conflicts=('qtextpad-git')
sha256sums=('SKIP')

build() {
  rm -Rf build && mkdir build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ../${pkgname}/
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" PREFIX="/usr" install
}

Add option to change redo shortcut

Hi.

Is it possible to add an option to change (or append) the shortcut of Redo action to Ctrl-Y (default is Ctrl-Shift-Z)?

Muscle memory kicks in too often...

Colourful line numbers

If it's not a big trouble or bloat, it would be fine to see line numbers corresponding to lines having unsaved changes coloured by (for instance) qt palette bright or by kf5syntaxhighlighting .theme > editor-colors: "modified-lines" and to have bookmarks whose line numbers are coloured by (for instance) qt palette highlight or .theme > editor-colors: "mark-bookmark" to be set by double clicking on them.

Ed: Naturally, then one needs to be able to navigate between the bookmarks as well.

Well, another line number colour indicating lines containg the found search terms would be equally fine.

.desktop file

Would you mind providing a .desktop file as I'll try to put my PKGBUILD in AUR?

Or should I wait for your implementation of something or other?

When users install qtextpad they'll see this message in terminal:

To be able to change and customize themes you need to put them in ~/.local/share/org.kde.syntax-highlighting/themes. You can find theme in https://github.com/KDE/syntax-highlighting/tree/master/data/themes. Whereas only your custom or customized syntax definitions should be put in ~/.local/share/org.kde.syntax-highlighting/syntax.

Is that all right?

And here's my updated PKGBUILD:

pkgname=qtextpad-git
_gitname=qtextpad
pkgver() {
 cd "$srcdir/${_gitname}"
 git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
pkgver=0.9.r4.g329d83f
pkgrel=1
pkgdesc="Lightweight Qt text editor with KF5 (kate) syntax-highlighting –no KDE dep."
arch=('x86_64')
url="https://github.com/zrax/qtextpad"
source=("https://github.com/zrax/qtextpad.git")
license=('GPL3')
depends=('syntax-highlighting')
makedepends=('cmake' 'git')
install="$_gitname.install"
provides=('qtextpad')
conflicts=('qtextpad')
sha256sums=('SKIP')

build() {
  rm -Rf build && mkdir build && cd build
  cmake ../${_gitname} -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" PREFIX="/usr" install
}

Can't save

Brilliant idea and necessary program; wish you didn't abandon it.

Can't save a document in any way, Save, Save As…

On another note, lots of warning about unused or deprecated things during installation (on Arch Linux).

Shortcuts…

There are no key bindings for "Save As…" and "Replace…" since (I gather) these two are the only ones without common bindings for both KDE and Gnome and I'm neither in KDE nor in Gnome.

Though, for instance, I could figure out to replace your

replaceAction->setShortcut(QKeySequence::Replace);

with Qt::CTRL | Qt::Key_R, you might consider doing similar yourself for other non-KDE or non-Gnome users.

On another note, some hidden Qt shortcuts work beautifully like Ctrl+Backspace and Ctrl+K etc., but not Ctrl+U to delet a line.

Thanks for the "fancy copy/cut" convenience.

Automatic backup?

If not a big trouble to implement, it might be life saving to have an automatic backup feature. Few minutes ago the whole content of the file I've been working on since late last night has been wiped out because of a power outage. The file exists, but without any content. I backup my home twice daily, but obviously that's not a solution for such cases.

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.