Giter Club home page Giter Club logo

enki's Introduction

Build Status

Enki: A text editor for programmers

Official site

Installation

For most Linux and Windows users: use the pre-built binaries from the official site. But if you feel brave..

master branch can be unstable or even broken. Use releases if you are not going to hack Enki

1. Install dependencies

Mandatory:

  • Python 3
  • PyQt5. With SVG support.
  • Qutepart
  • [PyQt5 QtWebEngine bindings]. python3-pyqt5.qtwebengine or python3-qt5-webengine package.

Optional:

  • Python-Markdown. For Markdown preview
  • Docutils. For reStructuredText preview
  • ctags. For navigation in file
  • regex. For preview synchronization
  • CodeChat. For source code to HTML translation (literate programming)
  • Sphinx. To build Sphinx documentation.
  • Flake8. To lint your Python code.

Debian and Debian based

   apt-get install python3 libqt5svg5 python3-pyqt5 python3-pyqt5.qtwebengine python3-markdown python3-docutils ctags
   pip3 install -r requirements.txt

If your repo doesn't contain python3-pyqt5.qtwebengine, remove python3-pyqt5, python3-sip, and do pip3 install PyQt5

Install Qutepart from sources.

Other Unixes

Find and install listed packages with your package manager. Install Qutepart from sources.

Other systems

Go to official pages of the projects, download packages and install according to instructions.

2. Get the sources

Download source archive

3. Install Enki

python3 setup.py install

4. Enjoy

Don't forget to send a bug report if you are having some problems

Running from the source tree

python3 -m enki

Releasing new version

    make bump-version  # Set next version number. Commit the changes
    make changelog-update  # Edit and commit 3 changelog files
    git tag vx.x.x
    git push
    git push --tags
    make push-obs  # upload the version to Open Suse build service
    # make pip release TODO document this step

License

GPL v2

Authors

  • Andrei Kopats (aka andreikop) ported core and some plugins to Python, reworked it and released the result as Enki
  • Filipe Azevedo, Andrei Kopats and Monkey Studio v2 team developed Monkey Studio v2

The Team

Contacts

[email protected]

[email protected]

enki's People

Contributors

abitrolly avatar andreikop avatar bjones1 avatar bobotig avatar bwoodsend avatar dglent avatar evgeni avatar hlamer avatar hrnciar avatar panhejia avatar rockiger avatar rolandschulz avatar vi avatar yajo 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

enki's Issues

File menu

Change order of menu items to:
New
Open
Under close
Save
Reload
Print
Close
Quit

Wish: Sessions

This is a "far and wide" area, but certainly the way Kate editor does it is nice.

Ctrl+Shift+U should allow entering arbitrary ☆ unicode ☀ characters ☠

As expected for a Qt program, Enki does not handle Ctrl+Shift+U.

Underlined "u" should appear and further typed hex digits should underlined. Pressing Space or Return should accept the input. For example, underlined "u10392" should convert to the character that looks like three black triangles (cannot insert it here because of Comment contains unicode characters above 0xffff github error). Backspace should erase hex digits. Erasing underlined "u" or pressing Escape should escape to normal input mode.

P.S. insert this and other funny characters like U+E0020 into Enki and see other bugs.

Wish: reStructured Text

Add support for .rst files, and if possible an nice preview pane, same as the juicy screenshot on the website.

Can't unset shortcut for "Print" in GUI

  1. Settings->Application shortcut
  2. "Print"
  3. Mouse click at "Print"
  4. Mouse click at "<X" button
  5. Click a button with green tick
  6. Can't set shortcut, it's already used by action 'History'

Actually I wanted to reassign it to "Display completions window" (like in Vim), but have not found "Display completinos" menu item.

Store result of previous searches

It is fine, if it's able to show results of previous searches in files.
I purpose add qlistwidget in dock "Search Results" in which display previous searched sentences.

Wish: DockWidgets and Collapsible sidebar

If the OpenedFiles or FileBrowser dock widgets are visible in the "side dock", the only way to hide then is to close both, or select "hide all widgets" from the menu.

It would be nice to have a feature, same as Eclipse to collanse the side bar, probably with a button on the top somewhere

Autocompletion menu always on top

  1. Start type any phrase until auto completion show
  2. Switch active window to another.
  3. Menu visible is holding on top

Gnome - 2.30.2
Debian squezzy

Enki should enable saving even if there are no changes

Sometimes Enki does not detect that file is changed by external program (for example when editing sshfs-mounted files) and I need to change something back and forth to re-save the file. File->Save->Save should be just enabled always.

Quicker way to add/remove bookmarks by clicking

To add a bookmark, CTRL+B is required.

I also like the way it works in Kate-editor.org, where

  • clicking on the "space" next to the line number add a bookmark star
  • clicking on the start removes the bookmark..

Another nice feature youls be to add a "background-color" to the "space" next the linenumber if there's a @todo: tag

Excessive CPU usage when typing text

  1. Open some Makefile and README.md in Enki.
  2. Place cursor at some random position
  3. Press and hold some letter key.

What should happen
New characters appear at contact rate, CPU usage is little.

What happens
Makefile: new characters appear smoothly, but CPU usage by Enki is 90%
README.md: blocks of new characters appears with exponentially increasing delays, CPU usage by Enki is 100%. Closing preview pane does not speed up typing.

Hardware is EeePC with Atom N550 @ 1.50GHz.

Closing a file when in "opened file" moves the focus to the editor.

The problem is: I want to close several files, so I go to "open files", I move the marker to the file which I want to close, I hit "Ctrl+W" -- the file is closed. Then I want to go to the next file in my list, that needs to be closed... but the editor got the focus, so I need to press "Alt+O" again, which is really inconvenient when I have to close 10-20 files.

It seems to me that after pressing "Ctrl+W" the focus should remain in "open files" window.

More colour choices.

I am one of those who use dark colours when coding.

Perhaps theme-able like gedit..

A really low priority feature :)

Regards Falk

External tools

External tools for each language, i.e. javac/java for java language, bash for bash scripts, and so on.
When file is loaded, its type (for highlighting) is auto-detected, and external tools for file type are bound to hotkeys.

Wishes - Pics in list of opened files

Add some pictures left to name of opened files.
Now on this area may placed image "File is modified", otherwise - file name looks like alone string.

Doesn't store previous search sencences

How reproduce:

  1. Select any work in main window.
  2. Press Ctrl+F
  3. Press F3 sometimes
  4. Select another word
  5. Press Ctrl+F
    Now in QListWidget "Search" previous sentence is absent.

Backspace in replace mode does not work to like I expect

  1. Switch to replace mode
  2. Type something over the existing text
  3. Press backspace several times

What should happen:
Preferred: Old text gets restored and cursor moves back (like in Vim)
Not preferred: Spaces appear and cursor moves back (like in Emacs)

What happens:
Backspace works just like in insert mode, deleting character and shifting the rest of string left.

Wishes - Backups.

  1. Create backups only after modification file and save it.
    Now it's create backups upon open - therefore I may have many useless backups.
  2. For linux host I prefer adding symbol '~' for marking backups.

document color

on trying to match my dark system theme, i change the pen and document color in the settings. Now i have a dark background and light text.

Question is where can i change the colors of the syntax highlighting? Since id need to change any black text to white now.

Highlight other matches of selected text

Moved from #41

Enki should be able to highlight other occurrences of the word under cursor in the visible part of file, like in NetBeans (or some). The highlighting should not come at expense of slowing down Enki, it should be with reasonable delays and be lower priority than typing (unlike some auto-command scripts for Vim).

Vertical split

It is useful sometimes to view one code (header, for example) and write other code. Or view some table's header in little upper pane and edit table's data in lower pane.

Enki should support vertical window division (including opening the same file in both upper and lower panes).

There should be quick identifier searching

Enki should support quick way to search current work forward and backward (like '*' and '#' in Vim). What is a word should depend on current syntax highlight mode, defaulting to what is \b in regexes.

Deleting folded lines content

When deleting long lines content, which are folded to minimum two lines, only first Line gets deleted and others are "overwritten" by following lines (if any).

Orphan lines disappear, when changing to another application or typing any key

Expected behaviour:

  • line gets deleted completely
  • line numbering still correct
  • orphan line don't show up

Steps to reproduce:

  • Fill line with "asdf asdf asdf ..." until folded to next line
  • Press SHIFT + POS1to mark complete line from end to beginning
  • Press DEL or BACKSPACE

Possible fix:
Trigger redraw after deleting?

Highlight colours should be adjustable from GUI

File->Editor->Colours

I see only 4 adjustable colours. There should be more.

For example I want to adjust that faint yellowish background of other matches of the text being searched to something more visible. I also don't see the relevant settings in ~/.enki/enki.json.

Up and down arrows does not select file in Locator

When opening a file using Locator, I expect to be able to navigate the file in currently visible list and press Enter to finally open it. Currently pressing down or up arrows makes Locator show main menu (or main menu with only "[f] PATH [LINE]" entry) or do nothing.

If up/down arrows conflict with Locator history, Ctrl/Alt/Shift/Whatever+up/down can be used.

Can't open non-existing file with File->Open or Locator

I can open file to be created from command line (enki non_existent_file.c). But I can't do the same with Locator and File->Open.

Trying to do f dir/non_existing_file.c in Locator should open file to be created just like in enki dir/non_existing_file.c

Template for preview

It would be nice if one could define a template for markdown preview in the configuration. This would be useful for any header information required for most of ones files, e.g. for MathJax:

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML.js"></script>

Highlight word search matches

When user searches word with Ctrl + <>, it shall be highlighted.
Probably, with different colour, or, with the same, as normal search

Search in backuped files

If trying to search in files, in backup-ed files (*.bak) it search too, but this is not necessary.

Enki's GUI is not keyboard-friendly enough

  1. When closing, I expect "Save checked", "Discard", and "Cancel close" to have Alt+S, Alt+D and Alt+C shortcuts (with S, D and C characters underlined on button labels).
  2. I expect to be able to open main menu using Alt+F (or just Alt). In the menu itself some entries have underlined characters, some not...
  3. A random thing: I can open "Preview" pane from View menu, but can't close it from menu. Usually such things are done as checkbox in the menu. How to close preview pane without using mouse?

Try to configure and work for some time in Enki without mouse (but putting aside the pre-existing knowledge of the Application Shortcuts).

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.