Comments (5)
made the fix in app. now all cmd_Markers* commands are recorded to macros. I don't know why it was disabled.... tested with Macros plugin - such commands are recorded now.
from cudatext.
This can be done by mouse already:
- click at start-point
- scroll to some place
- Shift+click at end-point
from cudatext.
I forgot about MARKERS. your wish can be done with markers:
- put caret on select-start, call 'markers: drop marker at caret' from Command Palette
- put caret to select-end
- call 'markers: select to last marker'
from cudatext.
Ah yes, Markers, that might do it. Alas they are not recorded in the Macros it seems.
It is also a pita you can't edit the macros in the macro-gui, but that is another problem :)
My purpose is (as an example) that I have a line of html (where | is the caret position):
<p>Lorem ipsum <b>dolor sit |amet</b>, consectetur adipiscing elit.</p>
Now run the macro to select the text within the bold tag e.g. dolor sit amet
I do a findprevious >
, start select (Drop marker), do a findnext <
, then select cmd_Markers_SelectToCaret
Is there an obvious mistake I'm making?
When I record it only records the findprevious/findnext and KeyRight/Left commands.
Edit: found the error in my code, I forgot to insert cmds.
for the manually added commands. Works now!
When I modify the macro code to include the cmd_Markers_DropAtCaret
and cmd_Markers_SelectToCaret
it doesn't seem to generate the result I expect (or am hoping for)
"ed.cmd(cmds.cmd_FinderAction,'findprev\\x01>\\x01\\x01faA')",
"ed.cmd(cmds.cCommand_KeyRight)",
"ed.cmd(cmds.cmd_Markers_DropAtCaret)",
"ed.cmd(cmds.cmd_FinderAction,'findnext\\x01<\\x01\\x01faA')",
"ed.cmd(cmds.cCommand_KeyLeft)",
"ed.cmd(cmds.cmd_Markers_SelectToCaret)"
from cudatext.
Thanks!
from cudatext.
Related Issues (20)
- lets improve PROP_CORNER_TEXT? HOT 32
- CudaText 1.208.8 alpha HOT 4
- space-only line is not colored OK in Markdown lexer in fenced block
- 1.208.6 alpha: regress in Undo with empty trailing line HOT 2
- "Save a Copy As..." and keeping original file open HOT 13
- API: how to know if mouse button is down? HOT 3
- backspace is dead in Gtk2 version 1.208.5 HOT 22
- TimerAppIdle.Interval is too high? HOT 7
- Suggestion: allow for "if/then/else/exit" in macros HOT 1
- Project Manager: KeyError: 'nodes' HOT 4
- Project manager: open project on Windows, then same project on Linux = empty project HOT 2
- Python portable on Linux distro HOT 2
- slow editor HOT 1
- Plugin for org-mode? HOT 3
- Korean IME does not work properly on Win11 HOT 9
- click does not place caret at correct pos, if separate edit-control has separate proportional font HOT 9
- how to alt-tab from plugin dialog to main window? HOT 24
- Please consider adding printing support HOT 6
- CudaExt, dialog - tab/panel to switch to⦠update HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cudatext.