Code Monkey home page Code Monkey logo

atsynedit's People

Contributors

alekid avatar alexey-t avatar artem3213212 avatar d0vgan avatar rasberryrabbit avatar thaidat avatar veksha 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

atsynedit's Issues

page-dn jump

Как настроить, чтобы

  • каретка оставалась на том же месте экрана,
  • последняя видимая строка файла стала первой видимой

Попробовал ставить и size и size-1 -- каретка прыгает из первой строки экрана в нижнюю. @kvichans

More issues with folding

  • run demo
  • fold 11-20
  • left click gutter (line number) on line 11 (to select line)
    according to statusbar-info the caret is at x=1,y=12: ok.
  • now press up or down key

You will be at the line 1 of the document. Not expected. (it actually is at the first line in the visible window)


  • run demo
  • fold 11-20, 31-40, ...
  • scroll down (so topline = 10
  • left click gutter (line number) on line 31 (to select line)
    according to statusbar-info the caret is at x=1,y=32: ok.
  • now press cursor-right key
    according to statusbar-info this will move through line 32.

But each press of right, will scroll the text up by one line ,

Still hang/endloss loop with fold

  1. Fold some code e.g. line 11 to 20
  2. place caret in line 10
  3. black selection
    ctrl-alt-right
    ctrl-alt-down
    ctrl-alt-down
    ctrl-alt-down

hangs

Shift cursor right, past EOL creates an invisible selection

Place the caret past the end of a line.
Normally if a char is inserted, spaces are filled to the visible pos of the caret, and the char appears at the correct pos.

Place the caret past the end of a line.
Press Shift-right several times.
The caret will move. There is no visible selection

But if you press any char, the caret jumps back to where you started Shift-right and the char is inserted there (as if there had been a selection)

redo always does all undo

With group undo:

if you write text, go to new place, write text, go to new place, write text, go to new place, write text....

Then you can press undo, and it undoes one piece of text at a time (correct).

So undo 3 or 4 times. Now if you Redo, it will redo all, and al the undo become a single undo too, instead of being 3 or 4.

Drag into minimap dont saves horiz scroll for main text

Если (1) текст из длинных строк (несколько ширин окна), (2) wrap off, то drag подцвеченного куска в minimap вверх-вниз приводит к перемещению горизонтального скрола в осн. тексте в крайнее правое положение

Press LEFT for move caret to end of prev line

Сейчас каретка не перемещается с первой позиции второй строки на последнюю позицию первой строки при нажатии ВЛЕВО. Опции для такого поведения не нашел. Это будет?

wrap: end edge + with indent

Оч.хорошо. Давно ждали.
Можно ли доработать перенос пробельных символов?
Идея: переносить начиная с первого непробельного символа, попавшего за границу переноса.

Пример. Сейчас строка

····abc····xyz

будет переноситься так

····abc··
    ··xyz

а хотелось бы так

····abc····
    xyz

Column not kept

To reproduce the issue, follow these steps:

  • Turn off the option 'caret after eol'.
  • Type the following text:

abcdefg
hij
klmnopqrst

  • Place the cursor onto the letter q.
  • Press two times the 'cursor up" key.

Expected result: The cursor will be on the letter g.
Actual result: The cursor will be on the letter d.

Return adds 2 new lines

If on the very last line of the text, (where there is no new line at the end), press return. Watch the gutter, there are 2 new lines.

This can happen, if:

  • the current last line has text, but no newline
  • or if you go to the automatically created, empty last line.

speed

... at end, better now. 20 carets now fast -1M file, at end. Slower editing if newlines added; no newlines--fast. @User4martin

Not all options are saved

Спасибо за команды сохранения настроек
Может быть работа над этим еще не закончена?
Вот настройки, которые не сохраняются

  • unprinted -- tab-arrow len
  • unprinted -- tab-arrow pointer size

Need change position for TAB-arrow

Хорошо, что длина TAB-стрелки стала настраиваться. Но сейчас короткая стрелка выровнена по центру своего отрезка. Это не позволяет понять в какой колонке вставлен символ TAB
tab-arrow
Нужно выравнивать "влево", чтобы явно обозначать колонку

Move selection up/down

Select some text in the last line. Then move sel up, down, down
Alt up, alt down, alt down

This inserts a new empty line. It can be repeated to add many new lines

switching off word wrap does not asways scroll to last line of text

add a very long line (500 chars) at the end of the text (as last line)
activate word wrap.

Go to the end of the text / end of that line.
The line should now fill the entire screen.

Switch off wordwrap.

The editor is empty, the gutter is empty too.
The editor show an area past the end of file.

"unprintable"+"show" influences to "show wrapped-indent vert line"

В Сине это две независимые настройки.
В Демо верт.линии общих сдвигов (staple?) исчезают при выключении скрытых символов. Надеюсь это временно.

UPD Уже понял, что эти верт.линии не staple из Син. Они играют похожую роль. Считаю, что их отображение не нужно отображением скрытых символов.

Need version-info in title of Demo

Хорошо бы прямо в титуле тестового приложения писать версию/сборку контрола и самого приложения

fold and goto line

  • run demo
  • fold 11-20
  • goto line from menu, enter 15

Now lines 12-14 and 16-20 are hidden.
Line 15 is visible

But there is no fold marker or anything for the folded block 16 to 20.

Imho in such a case the entire block (11 to 20) should be unfolded.
But splitting the block into 2 new folds, revealing just one line is fine too, as song as fold indicators are correctly shown.


A similar issue happens if

  • run demo
  • fold 11-20
  • place caret in line 11
  • press return

line 12 will be visible, but the fold marker is still at line 11 (though the first hidden line is line 13)

Replace selection with tab

Enter a line
123

Select the 2, now if you type any char the 2 will be overwritten.
Except, if you type tab. you get (2 leading spaces)
123
but I expect
13

Editor hangs with fold

  • Run the demo.
  • Select fold from menu
    (lines 11 to 20 are folded)
  • left click the line-number-part of the gutter on line 11 (in front of the fold marker),

Normally this should select the line. But the editor just stops to respond. It goes into an endless loop.

fold and column select

if you fold some text, all cursor movement will tread the folded block as one line.
That is if you do any action moving the cursor a line down, and you were right before the fold, then you will be right after the fold.
That is correct (as in expected).

The exception is column selection

  • run demo
  • fold 11-20
  • caret at x=1 , y= 10

ctrl-shift-right
ctrl-shift-down
ctrl-shift-down
ctrl-shift-down

the caret will visit each hidden line. IMHO it should not.

It should go through the fold in one move and extend the selectio (selected column)n to all lines in the fold.

block selection (alt-shift) and tabs.

If a line contains tab, or Japanese chars (full width)

abcdef // no tabs
--->----->123456 // tabs

place caret between b and c
press
shift-alt-right
shift-alt-down

The selected part in the 2nd line is way too the right of that in the first line. Imho, it should be nearest to the desired position, so either start before, or start after the first tab.

Memory leak

Heap dump by heaptrc unit
16101 memory blocks allocated : 4118435/4173704
16100 memory blocks freed : 4118343/4173608
1 unfreed memory blocks : 92
True heap size : 393216 (128 used in System startup)
True free heap : 392912
Should be : 392928
Call trace for block $001ABC68 size 92
$0043371F line 377 of ../../atsynedit/atcanvasproc.pas
$0044244D line 2498 of ../../atsynedit/atsynedit.pas
$00440813 line 1983 of ../../atsynedit/atsynedit.pas
$00440A3F line 2006 of ../../atsynedit/atsynedit.pas
$0056725B line 126 of include/customcontrol.inc

'End' key jumps to beginning of line

  • Turn on "wrap at edge".
  • Turn on "end of wrapped part: prefer next line pos".
  • Enter some text so that wrapping occurs.
  • Place the cursor in the middle of the first line.
  • Press the 'End' key.

As a result, the cursor will jump to the beginning of the second (wrapped) line. It should jump to the end of the first line instead.

Save options

Все равно же потом опции будут как-то сохраняться. Почему бы уже в Демо не заложить этот механизм? Тяжко при каждом запуске одно и то же настраивать. Конечно, опции еще не устоялись, так пусть сохраняются "как есть" - новые и переименованные можно будет "донастраивать".

Need save 1st viewed line when resize viewer with "wrap on edge"

Никакой логики не просматривается в положении видимых строк при включенном wrap edge и изменениях размера окна. Желательно сохранять первую видимую строку

commands: "sel: ext sel by line" and "sel: sel lines at carets"

У команды sel: ext sel by line странное поведение, не совпадающее с ее именем. Она продолжает тек.выделение (в т.ч. просто каретку) до конца строки, вместо того, чтобы включить в выделение всю строку с кареткой.

Команда sel: sel lines at carets забывает включить в выделение eol.

Strange behavior of 'Cursor Down' key

Set up the following scenario:

down

Then press the 'Cursor Down' key.

Expected result: The cursor will be after the letter "u".
Actual result: The cursor will be after the letter "t".

Does not paint line after 400 visible chars

I have a very wide screen/desktop (multi monitor).
If I stretch the editor over the entire width of my screen, I can (with a small font) display about 1000 chars in a line WITHOUT scrolling. (they are all visible at the same time).

Or rather I could.

ATSynEdit only paints 400 chars of the line, and then an empty white space.

How to set Label for issue?

Не могу сообразить, как назначить Label на пост

  • Создаю новый
  • Ввожу заголовок
  • Ввожу тело
  • При попытке кликнуть на Labels (из ряда Issues Pull Labels Milestones) появляется 7 вариантов
  • Кликаю на question
  • Появляется "Bummer, we couldn't find anything". Видимо это фильт по меткам.
    А где добавление в пост?

Ctrl+L incorrect

2-3 parts with selection join incorrect, check CaretsJoin code..

Need save 1st/cur viewed line when wrap on/off

Версия Демо от 7 мая.
Из состояния wrap off
wrap-07may-off
переход в состояние wrap edge
wrap-07may-edge
происходит с потерей ориентации в тексте.
Возможные улучшения

  1. Cохранять на месте первую видимую строку (желательно).
  2. Cохранять на месте текущую строку (для нескольких кареток не однозначно)

Two problems with 'Cursor Up' key

Set up the following scenario:

up

Now press the 'Cursor Up' key two times.

Problem 1: After pressing 'Cursor Up' the first time, the cursor will move to the letter "h". It should move to the space after the letter "g" instead.

Problem 2: Pressing 'Cursor Up" the second time has no effect at all.

Editor turns black, if width increases

ON w32 (vista) if I increase the width of the editor (by increasing the width of the form), when I get over aprox 140 columns, the editor turns black

key-combo...

@User4martin I dont know how to make "ctl-K, ctrl-L" or "ctl-K, K, B" keys. If u have idea, how to make it... what handler need. for combo.

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.