GithubHelp home page GithubHelp logo

cuda_ext's People

Contributors

alexey-t avatar cudatext-addons avatar halfbrained avatar jackusay avatar kvichans avatar veksha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cuda_ext's Issues

Wish: Going to previous tab via hotkey

I would like to be able to go back to the previous tab via a hotkey. Suppose there are four tabs: [1], [2], [3], [4], and the user activates [1], then [2], then [4], and then presses the hotkey ==> [2] should become active. When the user presses the hotkey again ==> [4] should become active. When the user presses the hotkey again ==> [2] should become active. And so on.

In SynWrite, Ctrl+Tab has the desired behaviour. But note that I don't need the dialog as in SynWrite. Simply going back to the previous tab (without a dialog) would be sufficient.

This feature would be be very useful in conjunction with the new Find in Files feature, because it would make possible to switch back and forth between the search results and the source code tabs in a quick and easy manner.

(wish) Dont show each replacement for command ReplaceAll

Если из диалога Заменить дать команду ЗаменитьВсе, то текст дергается, быстро отображая перемещение к очередному найденному фрагменту и его замену.

Можно ли отключить показ промежуточных состояний?

Prev txt

Поправил у себя /prev/==>/previous/,
заметил у вас кривое /prev/-
Find clipboard string: prev
Activate prev tab

Cmd ReIndent

Добавить команду для подмены начальных сдвигов у выделенных строк

wish: Html commands: bold/italic

на Ru-board просили такой код, который к выделениб делает html tags:

  • bold, <b>sel here</b>
  • italic
  • underline

Можно сюда добавить?

find bracket from ' '

error in finding bracket.
(Cannot unpack ' ')

    (c_opn
    ,c_cls
    ,col)   = apx.icase(

 ,c_bfr=='»', ('»', '«', from_x-2)
                ,' ')

You assign ' ' to 3-tuple. if case is **last.

Wish: 4 align commands for 4 paragraph types

http://synwrite.sourceforge.net/forums/viewtopic.php?p=10816#p10816
Описано что такое 4 типа параграфа для писателей

Просят 4 команды для всех типов параграфов

Justification would include:
a. Left justified (smooth left edge, ragged right edge)
b. Right justified (ragged left edge, smooth right edge)
c. Center justified (ragged left/right edge)
d. Fully justified (smooth left/right edge)

smooth- выровненый край
ragged- грубый край
fully- значит раздвигать пробелами

удобно сделать 4 кмд для 4 типов через 1 диалог с radiogroups

Broken inf

лажовый Inf: goto tab N group 2-- неверно.

Align by separt, select back

Выделение "вверх"- от нижней строки (блок 4 строки) до верха
Плагин не делает align при этом

ver 1.2.3 Dlg Favorites

As SynWrite
fav

For importing Fav from SynWrite:

  • click "Add..."
  • select your "SynFav.ini" (see in "SynWrite\Settings").

Wish: rename cmd 2

"Replace all fragment as selected with clipboard value"-->
"Replace all occurrences of selected string, with clipboard string"

Align by separator: support mul-selections like Atom

Атом умеет так

dde=dd
dddee=dd
eeeeeeааа=ee
d=ed
ee=eeddd

тут 2 выделения. строка 1-2 и второе строка 4-5.
команда выровнит два выделения, и не тронет строку 3.

dde   = dd
dddee = dd
eeeeeeааа=ee
d     = ed
ee    = eeddd

Move split

Счас сплиттер считается как поз=поз*1.05.. ? тогда это гео прогрессия
а лучше делать ари прогрессию
поз=поз + 0.05*размер_панели

Paste and Indent command

такая команда есть в Лазарус+Сублиме. Она вставляет блок и подстраивает его строки чтобы был нормальный indent- чтобы стыковалось с кодом до вставки
(учитывает инденты строк до блока и инденты строк блока)

описание https://t.co/5SJDmx0RJK

fixed History

1.3.01 (2017-06-28)
added: 6 commands "Jump to next/previous changed/saved/working lines" (work by colored line status on gutter)

1.2.9 (2017-06-16)
added: cmd "Delete duplicate spaces"
fixed: don't use deprecated API

1.2.8 (2017-05-22)
added: cmd "Open all files in dir and sub-dirs"
added: cmd "Remove ASCII chars 0..31"

1.2.7 (2017-03-30)
added: 2 cmds "Switch tab to first/last in other group"

1.2.6 (2016-12-30)
added: cmd "Re-wrap/split lines by margin"

1.2.5 (2016-09-13)
removed: command "Edit lexer comment chars" removed to plugin Comments

1.2.4 (2016-08-02)
added: cmd "New file as save-as in current folder..."
removed: dialog Favorites removed to its own plugin

1.2.3 (2016-05-26)
added: dlg Favorites

1.2.2 (2016-05-26)
changed: cmd "Go back" uses "visited history"

1.2.0 (2016-05-23)
added: cmd "Copy word or [expression] or 'expression'"
added: cmd "Expand selection", which expands like: caret->word->'smth'->('smth')->f(smth)->...
added: cmds "Switch tab in inactive group"

1.1.0 (2016-05-19)
internal rework

1.0.8 (2016-05-16)
added: cmd "Go back" to activate previous active tab
added: cmds "Close tab in next/previous group"
added: cmd "Show current tree path in status"
added: cmd "Set nearest tree node"

1.0.7 (2016-04-01)
added: cmd "Navigate by error in console"
changed: cmd "Open file by selected name" recognizes "path(line)"

1.0.5 (2016-04-01)
added: cmd "Paste with indent" like in IDEs

1.0.4 (2016-02-24)
added: cmd "Rename current file"
added: cmd "Open file(s) near current tab"
added: cmd "Move tab to position"

1.0.3 (2016-02-14)
added: used new API ed.get_prop(PROP_LINE_TOP)

1.0.2 (2016-02-03)
added: cmd "Scroll current line to screen center"
added: cmd "Align in lines by separator"

1.0.1 (2016-01-22)
changed: renamed commands to use prefix "CudaExt:"

0.9.5 (2016-01-22)
added: cmd "Edit stream comment chars for lexer"

0.9.4 (2016-01-14)
added: cmd "Replace all fragment as selected to clipboard"
rework: cmd "Find clipboard string" saves user find-settings

0.9.2 (2016-01-11)
added: cmd "Move splitters"

0.9.1 (2015-12-26)
added: cmd "Swith tab to next/previous"

0.9.0 (2015-11-25)
init

Inf corrected

My change:

[info]
title=CudaExt
desc=Additional commands for CudaText in Commands dialog (not visible in Plugins menu)
type=cudatext-plugin
subdir=cuda_ext

Wish: Rename command

"show current Tree path in Status"-->
"Show current Code Tree path in statusbar"

ver 1.2.2 GoBack with "visit history"

Command Activate previously active tab (go back) is remaked.
Now the cmd uses visit history.

HowTo:

  1. Assign hotkey for this cmd.
    Hotkey must contain any modifier key: Shift, Ctrl, Alt, Win/Meta.
    F3 - bad, Ctrl+Tab - good, Ctrl+Shift+Alt+Win+Q - good.
  2. Jump to prev-tab by single press of the hotkey.
  3. Hold modifier key(s) and press the hotkey second time to jump to prev-prev-tab (2 steps back).
  4. While you hold modifier key(s), the cmd jumps more and more back to history (3,4,... steps back).
  5. When you release modifier key(s), next jumping starts from history head.

Note.
Hotkey without modifier key(s) is legal too. But it will always jump to prev-tab.

Example. How to use both tab-jumping (from my config):

  • Ctrl+Tab for natural-style jumping in visible order of tabs
  • Ctrl+] for smart-style jumping in history order of tabs

Wish: Join lines/ Split lines

Виш, на 2 команды

  • join lines- сцеплять выд-е в 1 строку (через пробел, не делать 2+ пробела на сцепке)
  • split lines- разбить строки в выделении на строки до длины Н (Н запросить. msg_box.)

пример вывода, н=15

ddd ddd ddddddd
ddddd ddddd dd
dddd dddddd ddd
ddd ddddd ddd
```

ver 1.2

News

  1. New command Copy word or [expression] or 'expression' without selection.

  2. New command Replace word or [expression] or 'expression with clip
    Both commands parse text around caret and use a minimal usefull part for action.
    If caret is inside or near word - the word will be used.
    If caret is near 'smth' or [smth] - this string will be used. (See Notes)

  3. New command Expand selection to word or "expression" or (expression)

  4. New command Expand and copy selection to word or "expression" or (expression)
    Expand current selection to the nearest usefull state:
    caret -> word -> phrase in brakets/quotes -> phrase with brakets/quotes -> ...
    Example. | caret, <...> selection

  fun('smt an|d oth', par)
  fun('smt <and> oth', par)
  fun('smt< and >oth', par)
  fun('<smt and oth>', par)
  fun(<'smt and oth'>, par)
  fun(<'smt and oth', par>)
  fun<('smt and oth', par)>
  <fun('smt and oth', par)>

Notes

To parse word the commands use option from def/user/lexer

  //jump-next-word, jump-prev-word, select-word (double-click) will
  //see these additional chars as "letters" and select them like letters.
  //Don't enter here: Latin/Rus/Greek/German letters, "0".."9", "_".
  //Note: config read as utf8-no-bom.
  "word_chars": "",

List of quotes can be changed with option
"cudaext_quotes":"\"'",

List of brackets can be changed with option
"cudaext_brackets":"[](){}<>",

Wish- Align lines by separator

Команда нужна часто. еще в Син просили раза 2. и сам пользуюсь

  • вводим separator char (пример для питона- "=")
  • выделенные строки (можно юзать 1 выделение) меняются пробелами - символ "=" должен быть в них в одной колонке
aa = 1
aaaa = 2
aaaaaaaaaa = 3
bbb
cccc
ddd = 4

==>

aa         = 1
aaaa       = 2
aaaaaaaaaa = 3
bbb
cccc
ddd        = 4

Comment-code 2

Тут тоже - надо удалить код просто

Center cmd

Команду простую хочется

  • Center current line on screen- центрировать строку верхней каретки чтобы каретка была тамже но скролл поменялся- строка каретки стала бы по центру
    (потестить на конце и начале файла)

Wish: rename cmd 3

"Open all files from asked dir and subdirs..."->
"Open all files, from folder with sub-folders..."

3 checks for API ver

FROM_API_VERSION = '1.0.119'
MIN_API_VER_4_REPL = '1.0.169'
+FROM_API_VERSION = '1.0.182' # PROC_SPLITTER_GET/SET, LOG_CONSOLE_GET_MEMO_LINES

Зачем то 3 проверки

Open file from select

есть файл в котором каретка на имени main.css

<link href="main.css" rel="stylesheet" type="text/css">
</head>

можно сделать- команда "открыть по выделению" открывает файл main.css? та же папка

Commd "Wrap selection in HTML tag"

Плс, посм. как работает хоткей Alt+Shfift+W в Субл.
Он берет выделение, кладет его в тег p

<p>selected</p>

и ставит 2 керетки на начало и конец тега
Говорят что это удобно!

Rename

Rename- такое есть в син. мне это иногда надо но не хочется Пас-кодом делать. можно сделать? чтобы таб переоткрывался с новым именем после ренейма. (можно на том же месте в группе?)
(и желательно диалог ренейма как в Син.)

name "Laz paste"

"Lazarus Paste" not nice, 'paster' not 1st word; wish: "Paste like Lazarus IDE"

Wish: 4 paragraph commands for simple text

a. Go to Beginning of Paragraph
b. Go to End of Paragraph
c. Go to Previous Paragraph
d. Go to Next Paragraph.

На форуме просят эти команды
Параграфы отделяются пустыми строками (1 иои больше).

Wrong code

        use_tab = not apx.get_opt('tab_spaces')
        sps_tab = ' '*apx.get_opt('tab_size')

нет, надо делать это ed.get_prop(PROP_TAB*)

Open file by selname

Original exception was:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/user/cuda/cuda/app/py/cuda_ext/__init__.py", line 19, in open_selected
    def open_selected(self):                    return RLS.open_selected()
  File "/home/user/cuda/cuda/app/py/cuda_ext/cd_ext.py", line 359, in open_selected
    op_ed       = _file_open(op_file)
  File "/home/user/cuda/cuda/app/py/cuda_ext/cd_ext.py", line 86, in _file_open
    if os.path.samefile(op_file, op_ed.get_filename()):
  File "/usr/lib/python3.4/genericpath.py", line 91, in samefile
    s2 = os.stat(f2)
FileNotFoundError: [Errno 2] No such file or directory: '?'

При открытии иконки (для нее будет filename="?") через кмд-
в html это так пишется-

    <link rel="SHORTCUT ICON" href="favicon.ico">

Need 4 new commands: Go to next modified line

  • Go to next modified line
  • ,.. previous ..
  • Go to next modified/saved line
  • ... previous ..

Это делается через ed.get_prop(PROP_LINE_STATE)
В Сине есть эти кмд.

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.