Giter Club home page Giter Club logo

moped's Introduction

moped's People

Contributors

fossabot avatar robertomachorro 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moped's Issues

Save file auto scrolls to top of page

Firstly, thanks for this app. As a previous Windows user, I need a simple notepad ...for notes (and plain text pasting to clear format stuff). This app is just right for that.

The one most annoying feature is in the title - I have to keep scrolling back down to my previous position in my file after using Command + S. Would be nice if I didn't have to.

BUG: Moped converts RTF file to "app from unidentified developer" without "saving" it.

As an experiment with Moped, I opened an RTF file, a text-based file, not a binary (if there is a binary RTF format). I can open this file in MacVim all day long without incident.

After quitting Moped, without saving the file or even attempting to make any changes, the file could not be opened with TextEdit. It produced the error:

image
"[K] Keyboard Maestro βŒ₯⌘K .rtf" cannot be opened because it is from an unidentified developer.
macOS cannot verify that this app is free from malware.
Moped created this file today at 7:08 PM.

When I clicked OK to the error message, then it could be opened normally. This should not have happened, I made no changes and did not save the file.

Why does the system report that the file was created by Moped when all it did was open it and not save it?

I can barely see the cursor.

I can barely see the cursor which is located right after (string[] args). The file type is cs and the theme is vs.

Moped Screen Shot

Feature Request: Basic AppleScript Functions

This simple AppleScript script:

tell application "Moped"
	set doc to front document
end tell

produces this error:

error "Moped got an error: Can’t get document 1." number -1728 from document 1

Unfortunately, this means I have to abandon my use of Moped. I love the fact that I can have multiple Moped windows on multiple Mission Control Desktops and Moped will reopen them all after a reboot and preserve which Desktop each window was in. I have been developing tools to keep track of projects on different desktops, but not being able to query the name of the file open in Moped on the current Desktop is a dealbreaker. I can't move forward without that basic function.

I've done some exploring of how to add AppleScript support to simple apps and built test apps in Xcode that respond to AppleScript. I would be willing to try to do that for Moped, but I haven't yet gotten the downloaded project to build. See Issue #36.

I'm self-taught so I'm often missing key concepts or terminology. Would someone be willing to mentor me in making this work? I'm not new at programming, I've built macro packages for Troff, VI, and TeX, converted Troff to PageMaker, added tools to Acrobat Pro using JavaScript, but Xcode has layers of assumptions that I haven't found documented yet because I'm too often going in circles.

Help With Building Moped

I am fairly new to Xcode development and Swift, both. I have downloaded the Moped project and the build failed because of a dependency on the "Highlightr" package. Xcode says:

Missing package product 'Highlightr', please fix package resolution errors before building

and

Package.resolved file is corrupted or malformed; fix or delete the file to continue

I interpret that as I need to either install the package or remove the references to it.

For my purposes, either route would be acceptable; I don't need syntax highlighting but I don't mind it being there.

Could someone who is familiar with the Moped code give me some direction in resolving this error? Thanks.

"Open With > Moped" from Finder, fail to save sometimes

OS: Big Sur
Platform: M1

When performing an Open With > Moped from Finder, some files may lack permissions to save. This is probably caused by Folder Permissions haven't been granted to Moped.

This is not the case under Big Sur and Intel based platforms, which is odd.

Save as

Is it possible to show "Save as" in the File tab?
Now I can use it only via Help

Unable to paste multi-line plaintext from Google Chat to Moped

Up till yesterday, I was able to paste in multi-line plaintext from Google Chat to Moped.

As of today, I am no longer able to paste in text from those screens. Everything seems to get placed into one line.

Uninstalling the moped app and reinstalling has had no effect.

I've attached an example. The original source is multiple lines. The paste-up is now only one line.

Image 8-24-23 at 7 31 AM

Thanks for taking a look at this..

Feature Request: Preserve tab indent on next line - like Notepad++

As a structured note writer:
I like to indent my related notes with tabs.
It would be nice if this app kept the tab indent for the next line when I press Enter.

I used to use this on Notepad++ all the time.
It would be fine if this was optional, and turned off by default to keep the purists happy.

nim language syntax highlighting not working

When I open the .nim files in Moped, the syntax highlighting is not applied. I do see com.textadept.nim-source on the left bottom corner, but the highlighting remains at vt2015. I see that there is a nimrod langauge, and manually selecting it applies the correct syntax highlighting.

Refactor ViewController.swift

I've selected ViewController.swift for refactoring, which is a module that has 1 instance(s) of code in comments (1). Addressing this will make our codebase more maintainable and improve Better Code Hub's Write Clean Code guideline rating! πŸ‘

Here's the gist of this guideline:

  • Definition πŸ“–
    Apply The Boy Scout Rule and fix "code smells" in the codebase.
  • Why❓
    Clean code is maintainable code.
  • How πŸ”§
    Remove useless comments, commented code blocks, and dead code. Refactor poorly handled exceptions, magic constants, and poorly named units or variables.

You can find more info about this guideline in Building Maintainable Software. πŸ“–


ℹ️ To know how many other refactoring candidates need addressing to get a guideline compliant, select some by clicking on the πŸ”² next to them. The risk profile below the candidates signals (βœ…) when it's enough! 🏁


Good luck and happy coding! :shipit: ✨ πŸ’―

Unable to load some files without a proper UTI

If a UTI is not defined in a macOS environment, it won't be recognized. These should either:

  1. Default to plain text.
  2. Create UTIs for all supported syntax highlighted files.

Or all of the above?

Feature Request: command line utility for Moped

Other mac text editors like Cot and TextMate have terminal integration that allows you to open a file from the Terminal by typing:

cot foo.md
mate bar.py
subl another.c #for sublime text

This will greatly increase the utility of Moped for many users because Moped can open a file much quicker than either of the above two text editors, and quick open/edit cycle can make huge difference in the usability of a program (

Here's how cot does it. It is worth considering if we can repurpose this script (Apache2.0 License) to something similar Moped by changing the APPLICATION_NAME variable.

Latest releases do not include precompiled binary

The README file is out-of-date, and links to the GitHub releases page for access to the latest precompiled binary. However, the last few releases do not include a binary. Please include a binary on GitHub when making new releases.

Reasoning: rather than using the Apple App Store to manage upgrades, I would prefer to use a Homebrew cask and manage upgrades myself from the command line. If a precompiled binary is provided in the release, a cask can be created to download and install it.

Add CLI shortcut to open Moped from Terminal

I like being able to open a file from the terminal, so I have created this global shortcut:

moped(){
   open -a "/Applications/Moped.app/Contents/MacOS/Moped" "$@"
}

in my ~/.zprofile but there are other ways to solve this that don't require editing shell config, like creating a binary file moped putting it in $PATH and have it:

#!/bin/zsh
open -a "/Applications/Moped.app/Contents/MacOS/Moped" "$@"

assuming Moped.app is directly in Applications.

Feature Request: Line counter on the left side

Hi,

finally I found what I was searching for since long time ago, but there is one thing missing to make it perfect for me and maybe for other users: the line counter.
Is it possible to have it on future releases for MacOs?

Thank you very much

Best regards

Feature request: dark mode

I switched my mac to dark mode, and most tools automatically make black their background color. However, moped has a white background with black text. It would be great if we could have the option to make it black background with white text (either manually, or by default when you switch your mac to dark mode)

Lovely app - icon needs an update

Lovely app - very fast and lightweight which is what i love

The scooter dock icon is good but now looks out of place with the other square icons on Big Sur

Would appreciate another icon or options.

thanks

Request for unlimited tab stops per line

Files have 12 preset tab stops and it's not possible to tab past column 36 since tab stops cannot be added or overridden. Existing text files with lines longer than 36 characters that also include tabs are automatically wrapped and not displayed as expected.
An enhancement would be to tab continuously on any line until a new line is started.

Side note: I just checked and TextEdit also defaults to 12 tab stops, but allows tabs to set and cleared via the ruler which would seems like overkill for this clean an app.

Tabs

It would be great to have tabs in application window. It will make possible to keep all opened files in the one window. Something like in Finder, for example

image

UNRECOGNIZED FILE

When opening an .txt-File, which can be edited with unix command vi, moped often opens the file and displaying "UNRECOGNIZED FILE" instead of displaying the file contents in plaintext.

loss of keyboard focus on Save

Love Moped, just what I was looking for.

I have a small workflow bug: when you Save your document, the keyboard focus leaves the Moped window, and you have to click to get the focus back.

To reproduce:

  • launch Moped
  • save document - just pick the default filename.
  • type a few characters, like "qwefqwef"
  • Command-S to Save.
  • try to type a few more characters - you can't. Instead you get the system warning beep.
  • now if you click in the window to regain keyboard focus, then you can continue typing.

This just breaks the workflow of typing. Small thing but I just find it annoying when typing.

What I would like to happen at this point:

  • you can just keep typing after a Save, without clicking in the window first.

Thanks! Otherwise Moped is a pleasure to use!

I tried looking at the code but I could not find where Command-S leads to model.data() (which I believe writes the file), and where the keyboard focus is lost. (I am advanced-beginner level MacOS programmer.)

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.