Git Product home page Git Product logo

cuda_embed_ed's People

Contributors

alexey-t avatar halfbrained avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

cudatext-addons

cuda_embed_ed's Issues

add readme part about 'API'

API
---
Plugins can use such API to open the embedded editor for any
given filename inside the current document:

        try:
            from cuda_embed_ed import open_file_embedded
            open_file_embedded(file_name, line_index_of_gap, caption)
        except ImportError:
            msg_status('Plugin "Embedded Editor" is not installed')

Content of included file doesn't showed.

I'm not sure is it issue of cuda_embed_ed or of cudatext itself.

When I press "Plugins -> Embedded Editor -> Toggle" content of included file is not shown, only controls "To new tab", name of included file, "Save" and "Close" is displayed. See attached image.

May be there is some incompability appeared, because I'm running Cudatext in Windows XP environment with Python 3.4. When I tested in Windows 7 there is all showed ok.

q

@Alexey-T can you help?

support Pascal

if lexer name contains "Pascal" (case insens) then search for this pattern

{$I dir/filename.ext}

$I can be $i too.
/ can be \ too on win32.

maybe add an option "pascal_lexer_names=" to comma separated lex names.

option comment fix

    // list of regex patterns
    // path is extracted from a named group: path, so every patter must contain one

->

    // list of regex patterns
    // file path is extracted from a named regex group with the name "path",
    // so every pattern must contain this named group

show a statusbar msg

When file is found and opened:
"Opened 'nnnnnn.css' in embedded window"

When not found:
"No embedded file was found"

configure for internal Functions

Hi, I would very much like to configure the "embedded Editor" to edit Functions and Sub in quasi Zen-Mode.
It is a feature I absolutely loved from the days of Quickbasic 4.5.
You could ( and you could only ) edit your Functions in a separate Window. That included of course the ability to search and replace certain terms only in the scope of that Function.
I know there ist that ability hidden somewhere in CudaText. But I do not trust that or rather me.
Although I am working on Scripts (that should at least be short) I do have up to 4000 Lines of Code in one Script.
If a search and replace operation goes wrong, I have a hard time to fix al the replaces entries.

The Structure of my Functions are those of VBScript, but are in fact .catvbs:

Function funcReadWritePersonalIniFile(tVarName, txtWert, iRWModus)
' Thema : Liesst oder aendert den Wert e i n e r bestimmten Variable
' der persoenlichen Einstellungen.
' Eingabe : 1. Name der Variablen als String
. . .
End Function

So, is there a way to do it?
Thank you very much
Cheers

Respect file encoding in Embedded Editor

I have some files that used encoding different from 'utf-8'. When I trying to see them in window of embedded editor pluging I got message:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 185: invalid start byte
ERROR: Exception in CudaText for toggle: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 185: invalid start byte

Can you consider to do changes for respecting file encoding in Embedded Editor. See attached patch.

diff --git a/embed_ed.py b/embed_ed.py
index cc9d2fd..3547650 100644
--- a/embed_ed.py
+++ b/embed_ed.py
@@ -385,7 +385,7 @@ class Hint:
         if self.h is None:
             self.h, self.ed = self.init_form()
 
-        with open(full_path, 'r', encoding='utf-8') as f:
+        with open(full_path, 'r', encoding=ed.get_prop(PROP_ENC, '')) as f:
             text = f.read()
 
         self.full_path = full_path

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.